diff options
author | Mark Stapp <mjs@voltanet.io> | 2020-07-17 23:09:51 +0200 |
---|---|---|
committer | Mark Stapp <mjs@voltanet.io> | 2020-10-23 18:16:52 +0200 |
commit | 5047884528ec263215504cb5df12ebd2422cc392 (patch) | |
tree | 952121f1a904ef9c86c1f7336a3aae757eeb3434 /ripngd | |
parent | * : update signature of thread_cancel api (diff) | |
download | frr-5047884528ec263215504cb5df12ebd2422cc392.tar.xz frr-5047884528ec263215504cb5df12ebd2422cc392.zip |
*: unify thread/event cancel macros
Replace all lib/thread cancel macros, use thread_cancel()
everywhere. Only the THREAD_OFF macro and thread_cancel() api are
supported. Also adjust thread_cancel_async() to NULL caller's pointer (if
present).
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'ripngd')
-rw-r--r-- | ripngd/ripngd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ripngd/ripngd.h b/ripngd/ripngd.h index 97291829b..a42c32ebb 100644 --- a/ripngd/ripngd.h +++ b/ripngd/ripngd.h @@ -351,7 +351,7 @@ enum ripng_event { /* RIPng timer on/off macro. */ #define RIPNG_TIMER_ON(T,F,V) thread_add_timer (master, (F), rinfo, (V), &(T)) -#define RIPNG_TIMER_OFF(T) thread_cancel(&(T)); +#define RIPNG_TIMER_OFF(T) thread_cancel(&(T)) #define RIPNG_OFFSET_LIST_IN 0 #define RIPNG_OFFSET_LIST_OUT 1 |