summaryrefslogtreecommitdiffstats
path: root/include/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hash.h')
-rw-r--r--include/hash.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/hash.h b/include/hash.h
index d260f65..2fb0a27 100644
--- a/include/hash.h
+++ b/include/hash.h
@@ -17,8 +17,8 @@ struct hashtable {
uint32_t initval;
uint32_t datasize;
- uint32_t (*hash)(const void *data, struct hashtable *table);
- int (*compare)(const void *data1, const void *data2);
+ uint32_t (*hash)(const void *data, const struct hashtable *table);
+ int (*compare)(const void *data1, const void *data2);
struct slist_head members[0];
};
@@ -33,7 +33,8 @@ void hashtable_destroy_node(struct hashtable_node *h);
struct hashtable *
hashtable_create(int hashsize, int limit, int datasize,
- uint32_t (*hash)(const void *data, struct hashtable *table),
+ uint32_t (*hash)(const void *data,
+ const struct hashtable *table),
int (*compare)(const void *data1, const void *data2));
void hashtable_destroy(struct hashtable *h);