summaryrefslogtreecommitdiff
path: root/ldpd/interface.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-07-21 08:26:43 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-07-21 08:30:50 -0400
commit2783a6921c8fd3917caa539df82e0d9f2a23eb0c (patch)
treed66407b5a832fe546455929c48511154d7a98edc /ldpd/interface.c
parentfa935aa7e8d46e4e5ff717f68523261903bb68b7 (diff)
ldpd: Convert thread_cancel to THREAD_OFF
Just convert all uses of thread_cancel to THREAD_OFF Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ldpd/interface.c')
-rw-r--r--ldpd/interface.c4
1 files changed, 2 insertions, 2 deletions
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 *