From 85a13586ed7fa718d30f73afb443a48072dcb0d9 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 17 Sep 2018 14:09:06 -0400 Subject: pimd: use bool instead of int to pass true/false In pim_if_new use bool instead of an int to pass true/false values for what we should create the pim interface type for. Signed-off-by: Donald Sharp --- pimd/pim_iface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pimd/pim_iface.c') diff --git a/pimd/pim_iface.c b/pimd/pim_iface.c index 66773efb3..249b24c0d 100644 --- a/pimd/pim_iface.c +++ b/pimd/pim_iface.c @@ -108,7 +108,7 @@ static int pim_sec_addr_comp(const void *p1, const void *p2) return 0; } -struct pim_interface *pim_if_new(struct interface *ifp, int igmp, int pim, +struct pim_interface *pim_if_new(struct interface *ifp, bool igmp, bool pim, bool ispimreg) { struct pim_interface *pim_ifp; @@ -1468,7 +1468,7 @@ void pim_if_create_pimreg(struct pim_instance *pim) pim->regiface = if_create(pimreg_name, pim->vrf_id); pim->regiface->ifindex = PIM_OIF_PIM_REGISTER_VIF; - pim_if_new(pim->regiface, 0, 0, true); + pim_if_new(pim->regiface, false, false, true); } } -- cgit v1.2.3