summaryrefslogtreecommitdiffstats
path: root/ripngd/ripngd.h
diff options
context:
space:
mode:
Diffstat (limited to 'ripngd/ripngd.h')
-rw-r--r--ripngd/ripngd.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/ripngd/ripngd.h b/ripngd/ripngd.h
index 70cba3c68..e40fd17b5 100644
--- a/ripngd/ripngd.h
+++ b/ripngd/ripngd.h
@@ -324,11 +324,7 @@ enum ripng_event
};
/* RIPng timer on/off macro. */
-#define RIPNG_TIMER_ON(T,F,V) \
-do { \
- if (!(T)) \
- (T) = thread_add_timer (master, (F), rinfo, (V)); \
-} while (0)
+#define RIPNG_TIMER_ON(T,F,V) thread_add_timer (master, (F), rinfo, (V), &(T))
#define RIPNG_TIMER_OFF(T) \
do { \