summaryrefslogtreecommitdiff
path: root/sysdep
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2017-05-18 14:28:03 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2017-05-18 14:28:03 +0200
commit5a9169e152779ac6f99e2eccb79a2a2f6e2c76b2 (patch)
tree5faad3eef511fd8880d3e6839193cbccf28d8912 /sysdep
parent7d5e61a66a3d4ecd004f3aa44a3d1bd3682ccf07 (diff)
parent78e4dac993ad018bee98e245f6e858e18cc5db8a (diff)
Merge branch 'master' into int-new
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/unix/timer.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdep/unix/timer.h b/sysdep/unix/timer.h
index ae5a27e8..aa3ed143 100644
--- a/sysdep/unix/timer.h
+++ b/sysdep/unix/timer.h
@@ -19,14 +19,14 @@ typedef struct timer {
resource r;
void (*hook)(struct timer *);
void *data;
- unsigned randomize; /* Amount of randomization */
- unsigned recurrent; /* Timer recurrence */
+ uint randomize; /* Amount of randomization */
+ uint recurrent; /* Timer recurrence */
node n; /* Internal link */
bird_clock_t expires; /* 0=inactive */
} timer;
timer *tm_new(pool *);
-void tm_start(timer *, unsigned after);
+void tm_start(timer *, uint after);
void tm_stop(timer *);
void tm_dump_all(void);
@@ -47,14 +47,14 @@ tm_remains(timer *t)
}
static inline void
-tm_start_max(timer *t, unsigned after)
+tm_start_max(timer *t, bird_clock_t after)
{
bird_clock_t rem = tm_remains(t);
tm_start(t, (rem > after) ? rem : after);
}
static inline timer *
-tm_new_set(pool *p, void (*hook)(struct timer *), void *data, unsigned rand, unsigned rec)
+tm_new_set(pool *p, void (*hook)(struct timer *), void *data, uint rand, uint rec)
{
timer *t = tm_new(p);
t->hook = hook;