ripd: Convert thread_cancel to THREAD_OFF

Just convert all uses of thread_cancel to THREAD_OFF

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2022-06-03 10:34:47 -04:00
parent 580e37a3fa
commit f6499a7608
3 changed files with 3 additions and 3 deletions

View File

@ -428,7 +428,7 @@ static void rip_interface_clean(struct rip_interface *ri)
ri->enable_interface = 0;
ri->running = 0;
thread_cancel(&ri->t_wakeup);
THREAD_OFF(ri->t_wakeup);
}
void rip_interfaces_clean(struct rip *rip)

View File

@ -84,7 +84,7 @@ static struct rip_peer *rip_peer_get(struct rip *rip, struct in_addr *addr)
peer = rip_peer_lookup(rip, addr);
if (peer) {
thread_cancel(&peer->t_timeout);
THREAD_OFF(peer->t_timeout);
} else {
peer = rip_peer_new();
peer->rip = rip;

View File

@ -3526,7 +3526,7 @@ static void rip_instance_disable(struct rip *rip)
THREAD_OFF(rip->t_triggered_interval);
/* Cancel read thread. */
thread_cancel(&rip->t_read);
THREAD_OFF(rip->t_read);
/* Close RIP socket. */
close(rip->sock);