From: Quentin Young Date: Fri, 17 May 2019 16:33:44 +0000 (+0000) Subject: vrrpd: const vrrp_hash_key X-Git-Tag: base_7.2~330^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=53ca01e52c487954f68ab7a76f163cf465fb9209;p=matthieu%2Ffrr.git vrrpd: const vrrp_hash_key Signed-off-by: Quentin Young --- diff --git a/vrrpd/vrrp.c b/vrrpd/vrrp.c index a5d4ef3f44..ad09caf359 100644 --- a/vrrpd/vrrp.c +++ b/vrrpd/vrrp.c @@ -2323,9 +2323,9 @@ int vrrp_config_write_global(struct vty *vty) return writes; } -static unsigned int vrrp_hash_key(void *arg) +static unsigned int vrrp_hash_key(const void *arg) { - struct vrrp_vrouter *vr = arg; + const struct vrrp_vrouter *vr = arg; char key[IFNAMSIZ + 64]; snprintf(key, sizeof(key), "%s@%" PRIu8, vr->ifp->name, vr->vrid);