diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-09-11 20:29:05 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-12-09 14:39:18 -0500 |
| commit | fb8b348cc115eaac21ad3986ad65b53400462360 (patch) | |
| tree | fd0b2af5cd9aa15ffc6e2345667f1701c447c2c1 | |
| parent | 671fd2a318ffb146f707882b23b41d2c49615805 (diff) | |
vrrpd: const vrrp_lookup()
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
| -rw-r--r-- | vrrpd/vrrp.c | 4 | ||||
| -rw-r--r-- | vrrpd/vrrp.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/vrrpd/vrrp.c b/vrrpd/vrrp.c index 1cdcaf88ac..a0d5a41705 100644 --- a/vrrpd/vrrp.c +++ b/vrrpd/vrrp.c @@ -654,12 +654,12 @@ void vrrp_vrouter_destroy(struct vrrp_vrouter *vr) XFREE(MTYPE_VRRP_RTR, vr); } -struct vrrp_vrouter *vrrp_lookup(struct interface *ifp, uint8_t vrid) +struct vrrp_vrouter *vrrp_lookup(const struct interface *ifp, uint8_t vrid) { struct vrrp_vrouter vr; vr.vrid = vrid; - vr.ifp = ifp; + vr.ifp = (struct interface *)ifp; return hash_lookup(vrrp_vrouters_hash, &vr); } diff --git a/vrrpd/vrrp.h b/vrrpd/vrrp.h index 9c1139837f..b1994c23f7 100644 --- a/vrrpd/vrrp.h +++ b/vrrpd/vrrp.h @@ -567,6 +567,6 @@ int vrrp_config_write_global(struct vty *vty); /* * Find VRRP Virtual Router by Virtual Router ID */ -struct vrrp_vrouter *vrrp_lookup(struct interface *ifp, uint8_t vrid); +struct vrrp_vrouter *vrrp_lookup(const struct interface *ifp, uint8_t vrid); #endif /* __VRRP_H__ */ |
