From ee528fbd5dc482ceece52832d4a8ea5a08251bfa Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Tue, 20 Jun 2017 15:55:39 +0200 Subject: Timers: Add typecast to unit-converting macros --- proto/radv/radv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'proto/radv') 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); } -- cgit v1.2.3