summaryrefslogtreecommitdiffstats
path: root/ripngd/ripng_peer.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 /ripngd/ripng_peer.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 'ripngd/ripng_peer.c')
-rw-r--r--ripngd/ripng_peer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ripngd/ripng_peer.c b/ripngd/ripng_peer.c
index 554b1d68f..010fdda89 100644
--- a/ripngd/ripng_peer.c
+++ b/ripngd/ripng_peer.c
@@ -75,15 +75,13 @@ struct ripng_peer *ripng_peer_lookup_next(struct ripng *ripng,
/* RIPng peer is timeout.
* Garbage collector.
**/
-static int ripng_peer_timeout(struct thread *t)
+static void ripng_peer_timeout(struct thread *t)
{
struct ripng_peer *peer;
peer = THREAD_ARG(t);
listnode_delete(peer->ripng->peer_list, peer);
ripng_peer_free(peer);
-
- return 0;
}
/* Get RIPng peer. At the same time update timeout thread. */