diff options
-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 1cdcaf88a..a0d5a4170 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 9c1139837..b1994c23f 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__ */ |