summaryrefslogtreecommitdiff
path: root/zebra/irdp_main.c
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2022-02-24 01:43:48 -0500
committerGitHub <noreply@github.com>2022-02-24 01:43:48 -0500
commit7bf63db79b7848b73e1cef49f3496038644bea16 (patch)
tree2c95921d910689673348e60f9614de7d9d00c4e7 /zebra/irdp_main.c
parentca6c97340b013e140c0cb31737858f7c672b7dfb (diff)
parentcc9f21da2218d95567eff1501482ce58e6600f54 (diff)
Merge pull request #10632 from donaldsharp/thread_return_null
*: Change thread->func to return void instead of int
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)