Module Name: src
Committed By: joerg
Date: Tue Mar 25 17:17:44 UTC 2014
Modified Files:
src/usr.sbin/rtsold: rtsold.c
Log Message:
Don't cast to time_t just to implicitly cast to uint32_t next.
To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/usr.sbin/rtsold/rtsold.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/rtsold/rtsold.c
diff -u src/usr.sbin/rtsold/rtsold.c:1.40 src/usr.sbin/rtsold/rtsold.c:1.41
--- src/usr.sbin/rtsold/rtsold.c:1.40 Tue Mar 18 20:39:55 2014
+++ src/usr.sbin/rtsold/rtsold.c Tue Mar 25 17:17:44 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: rtsold.c,v 1.40 2014/03/18 20:39:55 dsl Exp $ */
+/* $NetBSD: rtsold.c,v 1.41 2014/03/25 17:17:44 joerg Exp $ */
/* $KAME: rtsold.c,v 1.77 2004/01/03 01:35:13 itojun Exp $ */
/*
@@ -587,7 +587,7 @@ rtsol_timer_update(struct ifinfo *ifinfo
ifinfo->timer = tm_max; /* stop timer(valid?) */
break;
case IFS_DELAY:
- interval = (time_t) (arc4random() % (MAX_RTR_SOLICITATION_DELAY * MILLION));
+ interval = arc4random() % (MAX_RTR_SOLICITATION_DELAY * MILLION);
ifinfo->timer.tv_sec = interval / MILLION;
ifinfo->timer.tv_usec = (suseconds_t)(interval % MILLION);
break;