]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_clist.c
lib: hashing functions should take const arguments
[mirror_frr.git] / bgpd / bgp_clist.c
index e308e963b55f47e555fbb70d370e04fe48c605db..b9a5784799c6df89e0ebb8ebda00aeaeb9ae5ed8 100644 (file)
@@ -36,9 +36,9 @@
 #include "bgpd/bgp_regex.h"
 #include "bgpd/bgp_clist.h"
 
-static uint32_t bgp_clist_hash_key_community_list(void *data)
+static uint32_t bgp_clist_hash_key_community_list(const void *data)
 {
-       struct community_list *cl = data;
+       struct community_list *cl = (struct community_list *) data;
 
        if (cl->name_hash)
                return cl->name_hash;