aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man_hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'man_hash.c')
-rw-r--r--man_hash.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/man_hash.c b/man_hash.c
index 276320cb..2616b82c 100644
--- a/man_hash.c
+++ b/man_hash.c
@@ -1,4 +1,4 @@
-/* $Id: man_hash.c,v 1.13 2009/09/16 20:49:06 kristaps Exp $ */
+/* $Id: man_hash.c,v 1.14 2009/09/17 07:41:28 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -21,10 +21,12 @@
#include "libman.h"
-
static u_char table[26 * 6];
-
+/*
+ * XXX - this hash has global scope, so if intended for use as a library
+ * with multiple callers, it will need re-invocation protection.
+ */
void
man_hash_init(void)
{
@@ -49,7 +51,6 @@ man_hash_init(void)
}
}
-
int
man_hash_find(const char *tmp)
{