From: Donatas Abraitis Date: Tue, 10 May 2022 06:39:39 +0000 (+0300) Subject: bgpd: Convert int -> void for thread functions in RPKI X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=6fd9b0e17e137f176767c6368b17354761d27401;p=matthieu%2Ffrr.git bgpd: Convert int -> void for thread functions in RPKI int -> void not yet in 8.2, thus keeping the same format. Signed-off-by: Donatas Abraitis --- diff --git a/bgpd/bgp_rpki.c b/bgpd/bgp_rpki.c index 63e0787585..a2a375e416 100644 --- a/bgpd/bgp_rpki.c +++ b/bgpd/bgp_rpki.c @@ -391,7 +391,7 @@ static int bgpd_sync_callback(struct thread *thread) read(rpki_sync_socket_bgpd, &rec, sizeof(struct pfx_record)); if (retval != sizeof(struct pfx_record)) { RPKI_DEBUG("Could not read from rpki_sync_socket_bgpd"); - return; + return 0; } prefix = pfx_record_to_prefix(&rec); @@ -567,19 +567,21 @@ static int bgp_rpki_module_init(void) return 0; } -static void sync_expired(struct thread *thread) +static int sync_expired(struct thread *thread) { if (!rtr_mgr_conf_in_sync(rtr_config)) { RPKI_DEBUG("rtr_mgr is not synced, retrying."); thread_add_timer(bm->master, sync_expired, NULL, BGP_RPKI_CACHE_SERVER_SYNC_RETRY_TIMEOUT, &t_rpki_sync); - return; + return 0; } RPKI_DEBUG("rtr_mgr sync is done."); rtr_is_synced = true; + + return 0; } static int start(void)