summaryrefslogtreecommitdiff
path: root/lib/hash.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2018-10-23 12:31:25 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2018-10-23 12:31:25 +0200
commit064518517c57024e65e177ee79c0a98f9f28ef6e (patch)
treedcc1d14ad647a210ef2d93da4fe827d9337ada4b /lib/hash.h
parent920b243c1b154476ab9a629ac002817ead5a1efa (diff)
parentd17743d390757c170bad6a776de43d1809afe3c3 (diff)
Merge branch 'pull/3197'
...with a nit fix Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/hash.h')
-rw-r--r--lib/hash.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/hash.h b/lib/hash.h
index 2b4ea48f38..45ae6ce60a 100644
--- a/lib/hash.h
+++ b/lib/hash.h
@@ -73,7 +73,7 @@ struct hash {
unsigned int (*hash_key)(void *);
/* Data compare function. */
- int (*hash_cmp)(const void *, const void *);
+ bool (*hash_cmp)(const void *, const void *);
/* Backet alloc. */
unsigned long count;
@@ -115,7 +115,7 @@ struct hash {
* a new hash table
*/
extern struct hash *hash_create(unsigned int (*hash_key)(void *),
- int (*hash_cmp)(const void *, const void *),
+ bool (*hash_cmp)(const void *, const void *),
const char *name);
/*
@@ -150,7 +150,8 @@ extern struct hash *hash_create(unsigned int (*hash_key)(void *),
*/
extern struct hash *
hash_create_size(unsigned int size, unsigned int (*hash_key)(void *),
- int (*hash_cmp)(const void *, const void *), const char *name);
+ bool (*hash_cmp)(const void *, const void *),
+ const char *name);
/*
* Retrieve or insert data from / into a hash table.