diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-06-20 15:55:39 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-12-07 13:53:42 +0100 |
commit | ee528fbd5dc482ceece52832d4a8ea5a08251bfa (patch) | |
tree | 243ea4b34196fd7a36cb42d591aa55ba86c04484 /proto/radv | |
parent | 92cc1e745758893a57a2432a0e11e4cd3ad289b7 (diff) |
Timers: Add typecast to unit-converting macros
Diffstat (limited to 'proto/radv')
-rw-r--r-- | proto/radv/radv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/proto/radv/radv.c b/proto/radv/radv.c index 978d2091..415cd1d9 100644 --- a/proto/radv/radv.c +++ b/proto/radv/radv.c @@ -55,8 +55,8 @@ radv_timer(timer *tm) /* Update timer */ ifa->last = current_time(); - btime t = (btime) ifa->cf->min_ra_int S; - btime r = (btime) (ifa->cf->max_ra_int - ifa->cf->min_ra_int) S; + btime t = ifa->cf->min_ra_int S; + btime r = (ifa->cf->max_ra_int - ifa->cf->min_ra_int) S; t += random() % (r + 1); if (ifa->initial) @@ -93,7 +93,7 @@ radv_iface_notify(struct radv_iface *ifa, int event) } /* Update timer */ - btime t = ifa->last + (btime) ifa->cf->min_delay S - current_time(); + btime t = ifa->last + ifa->cf->min_delay S - current_time(); tm2_start(ifa->timer, t); } |