From 2783a6921c8fd3917caa539df82e0d9f2a23eb0c Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 21 Jul 2022 08:26:43 -0400 Subject: ldpd: Convert thread_cancel to THREAD_OFF Just convert all uses of thread_cancel to THREAD_OFF Signed-off-by: Donald Sharp --- ldpd/interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldpd/interface.c') diff --git a/ldpd/interface.c b/ldpd/interface.c index ddf6c395ae..392e25470f 100644 --- a/ldpd/interface.c +++ b/ldpd/interface.c @@ -467,7 +467,7 @@ static void if_hello_timer(struct thread *thread) static void if_start_hello_timer(struct iface_af *ia) { - thread_cancel(&ia->hello_timer); + THREAD_OFF(ia->hello_timer); thread_add_timer(master, if_hello_timer, ia, if_get_hello_interval(ia), &ia->hello_timer); } @@ -475,7 +475,7 @@ if_start_hello_timer(struct iface_af *ia) static void if_stop_hello_timer(struct iface_af *ia) { - thread_cancel(&ia->hello_timer); + THREAD_OFF(ia->hello_timer); } struct ctl_iface * -- cgit v1.2.3