summaryrefslogtreecommitdiffstats
path: root/vrrpd/vrrp.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-05-17 18:33:44 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-05-17 18:33:44 +0200
commit53ca01e52c487954f68ab7a76f163cf465fb9209 (patch)
tree6aacd621b04efacab47bd020274919e40ffad07f /vrrpd/vrrp.c
parenttools: add vrrpd to frrcommon.sh (diff)
downloadfrr-53ca01e52c487954f68ab7a76f163cf465fb9209.tar.xz
frr-53ca01e52c487954f68ab7a76f163cf465fb9209.zip
vrrpd: const vrrp_hash_key
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'vrrpd/vrrp.c')
-rw-r--r--vrrpd/vrrp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vrrpd/vrrp.c b/vrrpd/vrrp.c
index a5d4ef3f4..ad09caf35 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);