]> git.proxmox.com Git - mirror_frr.git/blobdiff - nhrpd/nhrp_peer.c
lib: hashing functions should take const arguments
[mirror_frr.git] / nhrpd / nhrp_peer.c
index db2f72ac2211e4d4e19ba320c9e51f6448f151c9..ca309f25061e936d439859394e1ca7c285e0069a 100644 (file)
@@ -151,9 +151,9 @@ static void nhrp_peer_ifp_notify(struct notifier_block *n, unsigned long cmd)
        nhrp_peer_unref(p);
 }
 
-static unsigned int nhrp_peer_key(void *peer_data)
+static unsigned int nhrp_peer_key(const void *peer_data)
 {
-       struct nhrp_peer *p = peer_data;
+       const struct nhrp_peer *p = peer_data;
        return sockunion_hash(&p->vc->remote.nbma);
 }