diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-06-01 12:33:20 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-12-07 13:49:27 +0100 |
commit | 025525266f6861437ca54aca2a86eb505a486baf (patch) | |
tree | 8a4f2035ef7edbcd77224ed76598ec0806f24512 /proto/rip/rip.c | |
parent | 28a7d3943ef915c405b3552ae06f639a86f4dc1e (diff) |
Timers: Replace old timers with microsecond timers
The old timer interface is still kept, but implemented by new timers. The
plan is to switch from the old inteface to the new interface, then clean
it up.
Diffstat (limited to 'proto/rip/rip.c')
-rw-r--r-- | proto/rip/rip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 820c5117..2583b49b 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -902,7 +902,7 @@ rip_timer(timer *t) static inline void rip_kick_timer(struct rip_proto *p) { - if (p->timer->expires > (now + 1)) + if (p->timer->expires TO_S > (now + 1)) tm_start(p->timer, 1); /* Or 100 ms */ } @@ -962,7 +962,7 @@ rip_iface_timer(timer *t) static inline void rip_iface_kick_timer(struct rip_iface *ifa) { - if (ifa->timer->expires > (now + 1)) + if (ifa->timer->expires TO_S > (now + 1)) tm_start(ifa->timer, 1); /* Or 100 ms */ } |