From 95d3f5011b509acbbc3a257c74c23bc5b57148af Mon Sep 17 00:00:00 2001 From: Chirag Shah Date: Tue, 16 May 2017 21:57:25 -0700 Subject: [PATCH] pimd: Fix input value to bool Signed-off-by: Chirag Shah --- pimd/pim_ifchannel.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pimd/pim_ifchannel.c b/pimd/pim_ifchannel.c index 04f8a22c6b..c5953e560c 100644 --- a/pimd/pim_ifchannel.c +++ b/pimd/pim_ifchannel.c @@ -583,7 +583,7 @@ pim_ifchannel_add(struct interface *ifp, return ch; } -static void ifjoin_to_noinfo(struct pim_ifchannel *ch, uint8_t ch_del) +static void ifjoin_to_noinfo(struct pim_ifchannel *ch, bool ch_del) { pim_forward_stop(ch); pim_ifchannel_ifjoin_switch(__PRETTY_FUNCTION__, ch, PIM_IFJOIN_NOINFO); @@ -599,7 +599,7 @@ static int on_ifjoin_expiry_timer(struct thread *t) ch->t_ifjoin_expiry_timer = NULL; - ifjoin_to_noinfo(ch, 1); + ifjoin_to_noinfo(ch, true); /* ch may have been deleted */ return 0; @@ -643,10 +643,10 @@ static int on_ifjoin_prune_pending_timer(struct thread *t) ch_del is set to 0 for not deleteing from here. Holdtime expiry (ch_del set to 1) delete the entry. */ - ifjoin_to_noinfo(ch, 0); + ifjoin_to_noinfo(ch, false); } else - ifjoin_to_noinfo(ch, 1); + ifjoin_to_noinfo(ch, true); /* from here ch may have been deleted */ } else