]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_nexthop.c
lib: hashing functions should take const arguments
[mirror_frr.git] / bgpd / bgp_nexthop.c
index de97b73c7210ab41d1b534d4e33b4af72c1130b0..ea5e02d00ebf97133edea39eefaf40043d7aadc7 100644 (file)
@@ -114,7 +114,7 @@ static void bgp_tip_hash_free(void *addr)
        XFREE(MTYPE_TIP_ADDR, addr);
 }
 
-static unsigned int bgp_tip_hash_key_make(void *p)
+static unsigned int bgp_tip_hash_key_make(const void *p)
 {
        const struct tip_addr *addr = p;
 
@@ -237,7 +237,7 @@ static void bgp_address_hash_free(void *data)
        XFREE(MTYPE_BGP_ADDR, addr);
 }
 
-static unsigned int bgp_address_hash_key_make(void *p)
+static unsigned int bgp_address_hash_key_make(const void *p)
 {
        const struct bgp_addr *addr = p;