summaryrefslogtreecommitdiff
path: root/pimd/pim_pim.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 /pimd/pim_pim.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 'pimd/pim_pim.c')
-rw-r--r--pimd/pim_pim.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/pimd/pim_pim.c b/pimd/pim_pim.c
index 93ccfd78df..5cc0d63e31 100644
--- a/pimd/pim_pim.c
+++ b/pimd/pim_pim.c
@@ -42,7 +42,7 @@
#include "pim_errors.h"
#include "pim_bsm.h"
-static int on_pim_hello_send(struct thread *t);
+static void on_pim_hello_send(struct thread *t);
static const char *pim_pim_msgtype2str(enum pim_msg_type type)
{
@@ -326,7 +326,7 @@ int pim_pim_packet(struct interface *ifp, uint8_t *buf, size_t len)
static void pim_sock_read_on(struct interface *ifp);
-static int pim_sock_read(struct thread *t)
+static void pim_sock_read(struct thread *t)
{
struct interface *ifp, *orig_ifp;
struct pim_interface *pim_ifp;
@@ -398,8 +398,6 @@ done:
if (result) {
++pim_ifp->pim_ifstat_hello_recvfail;
}
-
- return result;
}
static void pim_sock_read_on(struct interface *ifp)
@@ -745,7 +743,7 @@ static void hello_resched(struct interface *ifp)
/*
Periodic hello timer
*/
-static int on_pim_hello_send(struct thread *t)
+static void on_pim_hello_send(struct thread *t)
{
struct pim_interface *pim_ifp;
struct interface *ifp;
@@ -761,7 +759,7 @@ static int on_pim_hello_send(struct thread *t)
/*
* Send hello
*/
- return pim_hello_send(ifp, PIM_IF_DEFAULT_HOLDTIME(pim_ifp));
+ pim_hello_send(ifp, PIM_IF_DEFAULT_HOLDTIME(pim_ifp));
}
/*