diff options
author | Donald Sharp <sharpd@nvidia.com> | 2022-02-23 01:04:25 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2022-02-24 01:56:04 +0100 |
commit | cc9f21da2218d95567eff1501482ce58e6600f54 (patch) | |
tree | d579c9754161d874bad6eb09c67821b65fb559ca /pimd/pim_ssmpingd.c | |
parent | Merge pull request #10621 from donaldsharp/cov_fun (diff) | |
download | frr-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 'pimd/pim_ssmpingd.c')
-rw-r--r-- | pimd/pim_ssmpingd.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/pimd/pim_ssmpingd.c b/pimd/pim_ssmpingd.c index abd95e648..596b06cb3 100644 --- a/pimd/pim_ssmpingd.c +++ b/pimd/pim_ssmpingd.c @@ -315,19 +315,16 @@ static int ssmpingd_read_msg(struct ssmpingd_sock *ss) return 0; } -static int ssmpingd_sock_read(struct thread *t) +static void ssmpingd_sock_read(struct thread *t) { struct ssmpingd_sock *ss; - int result; ss = THREAD_ARG(t); - result = ssmpingd_read_msg(ss); + ssmpingd_read_msg(ss); /* Keep reading */ ssmpingd_read_on(ss); - - return result; } static void ssmpingd_read_on(struct ssmpingd_sock *ss) |