summaryrefslogtreecommitdiff
path: root/zebra/irdp_main.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-02-22 19:04:25 -0500
committerDonald Sharp <sharpd@nvidia.com>2022-02-23 19:56:04 -0500
commitcc9f21da2218d95567eff1501482ce58e6600f54 (patch)
treed579c9754161d874bad6eb09c67821b65fb559ca /zebra/irdp_main.c
parenteaba619fc183f68a456b3918f449185b3b477426 (diff)
*: Change thread->func to return void instead of int
The int return value is never used. Modify the code base to just return a void instead. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/irdp_main.c')
-rw-r--r--zebra/irdp_main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/zebra/irdp_main.c b/zebra/irdp_main.c
index f141b72719..43478c98f1 100644
--- a/zebra/irdp_main.c
+++ b/zebra/irdp_main.c
@@ -205,7 +205,7 @@ static void irdp_advertisement(struct interface *ifp, struct prefix *p)
stream_free(s);
}
-int irdp_send_thread(struct thread *t_advert)
+void irdp_send_thread(struct thread *t_advert)
{
uint32_t timer, tmp;
struct interface *ifp = THREAD_ARG(t_advert);
@@ -216,7 +216,7 @@ int irdp_send_thread(struct thread *t_advert)
struct connected *ifc;
if (!irdp)
- return 0;
+ return;
irdp->flags &= ~IF_SOLICIT;
@@ -246,7 +246,6 @@ int irdp_send_thread(struct thread *t_advert)
irdp->t_advertise = NULL;
thread_add_timer(zrouter.master, irdp_send_thread, ifp, timer,
&irdp->t_advertise);
- return 0;
}
void irdp_advert_off(struct interface *ifp)