]> git.proxmox.com Git - mirror_frr.git/blobdiff - nhrpd/reqid.c
lib: hashing functions should take const arguments
[mirror_frr.git] / nhrpd / reqid.c
index e8ad518e5890926e3bf9e538e2760e99c4525ad9..e56bbe3bf779b238c7598a4c66f1bc100bd8a492 100644 (file)
@@ -2,15 +2,16 @@
 #include "hash.h"
 #include "nhrpd.h"
 
-static unsigned int nhrp_reqid_key(void *data)
+static unsigned int nhrp_reqid_key(const void *data)
 {
-       struct nhrp_reqid *r = data;
+       const struct nhrp_reqid *r = data;
        return r->request_id;
 }
 
-static int nhrp_reqid_cmp(const void *data, const void *key)
+static bool nhrp_reqid_cmp(const void *data, const void *key)
 {
        const struct nhrp_reqid *a = data, *b = key;
+
        return a->request_id == b->request_id;
 }