From cc9f21da2218d95567eff1501482ce58e6600f54 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 22 Feb 2022 19:04:25 -0500 Subject: *: 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 --- ripngd/ripng_peer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ripngd/ripng_peer.c') 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. */ -- cgit v1.2.3