summaryrefslogtreecommitdiff
path: root/libnul.h
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <sandmann@daimi.au.dk>2009-08-29 14:31:11 -0400
committerSøren Sandmann Pedersen <sandmann@daimi.au.dk>2009-08-29 14:31:11 -0400
commit636993cbd190a067a364aaa86587c2bb4cd435f3 (patch)
treeee54902be5e122c8d6b827e4d24d51db633b43fa /libnul.h
parent5aef73cb7d023436f954906b84e61a58115a07f3 (diff)
Add hash-test.c. Some hash bug fixes.
Diffstat (limited to 'libnul.h')
-rw-r--r--libnul.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libnul.h b/libnul.h
index 3f01a01..c266be4 100644
--- a/libnul.h
+++ b/libnul.h
@@ -149,11 +149,11 @@ void nul_buffer_delete_tail (nul_buffer_t *queue,
* Hash tables
*/
typedef struct nul_hash_t nul_hash_t;
+typedef size_t (* nul_hash_func_t) (nul_const_ptr_t key);
+
typedef nul_bool_t (* nul_hash_equal_func_t) (nul_const_ptr_t key1,
nul_const_ptr_t key2);
-typedef uint32_t (* nul_hash_func_t) (nul_const_ptr_t key);
-
typedef void (* nul_free_func_t) (nul_ptr_t data);
nul_hash_t *nul_hash_new (nul_hash_func_t hash,