mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 14:54:24 +00:00
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:
parent
580e37a3fa
commit
f6499a7608
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user