summaryrefslogtreecommitdiffstats
path: root/ldpd/ldpe.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-02-23 01:04:25 +0100
committerDonald Sharp <sharpd@nvidia.com>2022-02-24 01:56:04 +0100
commitcc9f21da2218d95567eff1501482ce58e6600f54 (patch)
treed579c9754161d874bad6eb09c67821b65fb559ca /ldpd/ldpe.c
parentMerge pull request #10621 from donaldsharp/cov_fun (diff)
downloadfrr-cc9f21da2218d95567eff1501482ce58e6600f54.tar.xz
frr-cc9f21da2218d95567eff1501482ce58e6600f54.zip
*: 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 'ldpd/ldpe.c')
-rw-r--r--ldpd/ldpe.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/ldpd/ldpe.c b/ldpd/ldpe.c
index 31f8026e3..29abd420e 100644
--- a/ldpd/ldpe.c
+++ b/ldpd/ldpe.c
@@ -36,10 +36,10 @@
#include "libfrr.h"
static void ldpe_shutdown(void);
-static int ldpe_dispatch_main(struct thread *);
-static int ldpe_dispatch_lde(struct thread *);
+static void ldpe_dispatch_main(struct thread *thread);
+static void ldpe_dispatch_lde(struct thread *thread);
#ifdef __OpenBSD__
-static int ldpe_dispatch_pfkey(struct thread *);
+static void ldpe_dispatch_pfkey(struct thread *thread);
#endif
static void ldpe_setup_sockets(int, int, int, int);
static void ldpe_close_sockets(int);
@@ -273,8 +273,7 @@ ldpe_imsg_compose_lde(int type, uint32_t peerid, pid_t pid, void *data,
}
/* ARGSUSED */
-static int
-ldpe_dispatch_main(struct thread *thread)
+static void ldpe_dispatch_main(struct thread *thread)
{
static struct ldpd_conf *nconf;
struct iface *niface;
@@ -631,13 +630,10 @@ ldpe_dispatch_main(struct thread *thread)
thread_cancel(&iev->ev_write);
ldpe_shutdown();
}
-
- return (0);
}
/* ARGSUSED */
-static int
-ldpe_dispatch_lde(struct thread *thread)
+static void ldpe_dispatch_lde(struct thread *thread)
{
struct imsgev *iev = THREAD_ARG(thread);
struct imsgbuf *ibuf = &iev->ibuf;
@@ -770,14 +766,11 @@ ldpe_dispatch_lde(struct thread *thread)
thread_cancel(&iev->ev_write);
ldpe_shutdown();
}
-
- return (0);
}
#ifdef __OpenBSD__
/* ARGSUSED */
-static int
-ldpe_dispatch_pfkey(struct thread *thread)
+static void ldpe_dispatch_pfkey(struct thread *thread)
{
int fd = THREAD_FD(thread);
@@ -786,8 +779,6 @@ ldpe_dispatch_pfkey(struct thread *thread)
if (pfkey_read(fd, NULL) == -1)
fatal("pfkey_read failed, exiting...");
-
- return (0);
}
#endif /* __OpenBSD__ */