summaryrefslogtreecommitdiff
path: root/sysdep
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2014-11-03 10:42:55 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2014-11-03 10:42:55 +0100
commit6f8bbaa10bbd21729d0b62a5878febcbee2c0811 (patch)
tree5b20f464388a529084e53b24406b99df2210264d /sysdep
parent88a183c6c9a2b86b52f67e87bbc8b7edd32670c6 (diff)
Fininshing integrated OSPF.
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/unix/timer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdep/unix/timer.h b/sysdep/unix/timer.h
index 17450322..99d43932 100644
--- a/sysdep/unix/timer.h
+++ b/sysdep/unix/timer.h
@@ -34,6 +34,12 @@ extern bird_clock_t now; /* Relative, monotonic time in seconds */
extern bird_clock_t now_real; /* Time in seconds since fixed known epoch */
extern bird_clock_t boot_time;
+static inline int
+tm_active(timer *t)
+{
+ return t->expires != 0;
+}
+
static inline bird_clock_t
tm_remains(timer *t)
{