summaryrefslogtreecommitdiff
path: root/lib/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hash.c')
-rw-r--r--lib/hash.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/hash.c b/lib/hash.c
index 04549ada..76bf802a 100644
--- a/lib/hash.c
+++ b/lib/hash.c
@@ -26,8 +26,8 @@
/* Allocate a new hash. */
struct hash *
-hash_create_size (unsigned int size,
- unsigned int (*hash_key) (), int (*hash_cmp) ())
+hash_create_size (unsigned int size, unsigned int (*hash_key) (void *),
+ int (*hash_cmp) (void *, void *))
{
struct hash *hash;
@@ -45,7 +45,8 @@ hash_create_size (unsigned int size,
/* Allocate a new hash with default hash size. */
struct hash *
-hash_create (unsigned int (*hash_key) (), int (*hash_cmp) ())
+hash_create (unsigned int (*hash_key) (void *),
+ int (*hash_cmp) (void *, void *))
{
return hash_create_size (HASHTABSIZE, hash_key, hash_cmp);
}
@@ -63,7 +64,7 @@ hash_alloc_intern (void *arg)
corresponding hash backet and alloc_func is specified, create new
hash backet. */
void *
-hash_get (struct hash *hash, void *data, void * (*alloc_func) ())
+hash_get (struct hash *hash, void *data, void * (*alloc_func) (void *))
{
unsigned int key;
unsigned int index;