summaryrefslogtreecommitdiff
path: root/lib/hash-pjw.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2003-10-26 00:14:40 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2003-10-26 00:14:40 +0000
commitc31c5f30e8606260d4963b96a97b7dbce7607b67 (patch)
treef8e8c5089149adb05688b9c4bd97e67c5b6b6315 /lib/hash-pjw.h
parent73c74da6d226be20d214caa0a645e9007c281fa0 (diff)
downloadgnulib-c31c5f30e8606260d4963b96a97b7dbce7607b67.tar.gz
Fix several address-calculation bugs in the hash modules,
plus some minor code cleanup.
Diffstat (limited to 'lib/hash-pjw.h')
-rw-r--r--lib/hash-pjw.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/hash-pjw.h b/lib/hash-pjw.h
index efcda115ae..b2a0994943 100644
--- a/lib/hash-pjw.h
+++ b/lib/hash-pjw.h
@@ -1,5 +1,5 @@
/* hash-pjw.h -- declaration for a simple hash function
- Copyright 2001 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -16,5 +16,6 @@
If not, write to the Free Software Foundation,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-unsigned int
-hash_pjw (const void *x, unsigned int tablesize);
+#include <stddef.h>
+
+size_t hash_pjw (void const *x, size_t tablesize);