diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-17 18:33:44 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-17 18:33:44 +0200 |
commit | 53ca01e52c487954f68ab7a76f163cf465fb9209 (patch) | |
tree | 6aacd621b04efacab47bd020274919e40ffad07f /vrrpd/vrrp.c | |
parent | tools: add vrrpd to frrcommon.sh (diff) | |
download | frr-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.c | 4 |
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); |