diff options
author | Donald Sharp <sharpd@nvidia.com> | 2022-06-03 18:47:04 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2022-07-21 14:30:50 +0200 |
commit | 146bcb9b923b46096cd765577aafc1251cc86b69 (patch) | |
tree | ec2b2727d85b87a365fd931df3dea66c48b55acd /zebra/zebra_ptm.c | |
parent | lib, vrrpd: Use THREAD_ARG (diff) | |
download | frr-146bcb9b923b46096cd765577aafc1251cc86b69.tar.xz frr-146bcb9b923b46096cd765577aafc1251cc86b69.zip |
zebra: 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 'zebra/zebra_ptm.c')
-rw-r--r-- | zebra/zebra_ptm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zebra/zebra_ptm.c b/zebra/zebra_ptm.c index 3127d2d30..4a18eb021 100644 --- a/zebra/zebra_ptm.c +++ b/zebra/zebra_ptm.c @@ -157,9 +157,9 @@ void zebra_ptm_finish(void) free(ptm_cb.in_data); /* Cancel events. */ - thread_cancel(&ptm_cb.t_read); - thread_cancel(&ptm_cb.t_write); - thread_cancel(&ptm_cb.t_timer); + THREAD_OFF(ptm_cb.t_read); + THREAD_OFF(ptm_cb.t_write); + THREAD_OFF(ptm_cb.t_timer); if (ptm_cb.wb) buffer_free(ptm_cb.wb); @@ -213,7 +213,7 @@ static int zebra_ptm_send_message(char *data, int size) ptm_cb.reconnect_time, &ptm_cb.t_timer); return -1; case BUFFER_EMPTY: - thread_cancel(&ptm_cb.t_write); + THREAD_OFF(ptm_cb.t_write); break; case BUFFER_PENDING: thread_add_write(zrouter.master, zebra_ptm_flush_messages, NULL, |