summaryrefslogtreecommitdiff
path: root/pimd/pim_mroute.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 /pimd/pim_mroute.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 'pimd/pim_mroute.c')
-rw-r--r--pimd/pim_mroute.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/pimd/pim_mroute.c b/pimd/pim_mroute.c
index 91b997f44a..cf9127bc91 100644
--- a/pimd/pim_mroute.c
+++ b/pimd/pim_mroute.c
@@ -677,12 +677,11 @@ static int pim_mroute_msg(struct pim_instance *pim, const char *buf,
return 0;
}
-static int mroute_read(struct thread *t)
+static void mroute_read(struct thread *t)
{
struct pim_instance *pim;
static long long count;
char buf[10000];
- int result = 0;
int cont = 1;
int rd;
ifindex_t ifindex;
@@ -705,7 +704,7 @@ static int mroute_read(struct thread *t)
goto done;
}
- result = pim_mroute_msg(pim, buf, rd, ifindex);
+ pim_mroute_msg(pim, buf, rd, ifindex);
count++;
if (count % router->packet_process == 0)
@@ -714,8 +713,6 @@ static int mroute_read(struct thread *t)
/* Keep reading */
done:
mroute_read_on(pim);
-
- return result;
}
static void mroute_read_on(struct pim_instance *pim)