diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2020-11-11 14:14:37 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2020-11-15 15:04:52 -0500 | 
| commit | 7cfdb48554329b1fb7d0469d0ebf2bfa816c5eea (patch) | |
| tree | 50d3a706d34cd135865356c0d95f04511497510b /vrrpd | |
| parent | 8a3f8f2e4ae1e8aaa3666fd8d38780e753bc09e7 (diff) | |
*: Convert all usage of zclient_send_message to new enum
The `enum zclient_send_status` enum needs to be extended
throughout the code base to use the new states and
to fix up places where we tested against the return
value being non zero.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'vrrpd')
| -rw-r--r-- | vrrpd/vrrp_zebra.c | 5 | ||||
| -rw-r--r-- | vrrpd/vrrp_zebra.h | 4 | 
2 files changed, 4 insertions, 5 deletions
diff --git a/vrrpd/vrrp_zebra.c b/vrrpd/vrrp_zebra.c index 37a1e4a624..385d443571 100644 --- a/vrrpd/vrrp_zebra.c +++ b/vrrpd/vrrp_zebra.c @@ -179,14 +179,13 @@ void vrrp_zebra_radv_set(struct vrrp_router *r, bool enable)  					enable, VRRP_RADV_INT);  } -int vrrp_zclient_send_interface_protodown(struct interface *ifp, bool down) +void vrrp_zclient_send_interface_protodown(struct interface *ifp, bool down)  {  	DEBUGD(&vrrp_dbg_zebra,  	       VRRP_LOGPFX "Requesting Zebra to set %s protodown %s", ifp->name,  	       down ? "on" : "off"); -	return zclient_send_interface_protodown(zclient, ifp->vrf_id, ifp, -						down); +	zclient_send_interface_protodown(zclient, ifp->vrf_id, ifp, down);  }  void vrrp_zebra_init(void) diff --git a/vrrpd/vrrp_zebra.h b/vrrpd/vrrp_zebra.h index 02d7055b86..c09943dcef 100644 --- a/vrrpd/vrrp_zebra.h +++ b/vrrpd/vrrp_zebra.h @@ -26,8 +26,8 @@  extern void vrrp_zebra_init(void);  extern void vrrp_zebra_radv_set(struct vrrp_router *r, bool enable); -extern int vrrp_zclient_send_interface_protodown(struct interface *ifp, -						 bool down); +extern void vrrp_zclient_send_interface_protodown(struct interface *ifp, +						  bool down);  extern int vrrp_ifp_create(struct interface *ifp);  extern int vrrp_ifp_up(struct interface *ifp);  | 
