]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/hash.c
*: Replace hash_cmp function return value to a bool
[mirror_frr.git] / lib / hash.c
index 114522a75a95c340b1ce34c9e88657aa3ae5e7d6..641c75136872800825d1795233e643e74406873a 100644 (file)
@@ -38,7 +38,7 @@ static struct list *_hashes;
 
 struct hash *hash_create_size(unsigned int size,
                              unsigned int (*hash_key)(void *),
-                             int (*hash_cmp)(const void *, const void *),
+                             bool (*hash_cmp)(const void *, const void *),
                              const char *name)
 {
        struct hash *hash;
@@ -67,7 +67,7 @@ struct hash *hash_create_size(unsigned int size,
 }
 
 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)
 {
        return hash_create_size(HASH_INITIAL_SIZE, hash_key, hash_cmp, name);