Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/rtsold Don't cast to time_t just to implicitly cast...
details: https://anonhg.NetBSD.org/src/rev/7bbeea32299d
branches: trunk
changeset: 328076:7bbeea32299d
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Mar 25 17:17:44 2014 +0000
description:
Don't cast to time_t just to implicitly cast to uint32_t next.
diffstat:
usr.sbin/rtsold/rtsold.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 02764342bd2d -r 7bbeea32299d usr.sbin/rtsold/rtsold.c
--- a/usr.sbin/rtsold/rtsold.c Tue Mar 25 16:39:27 2014 +0000
+++ b/usr.sbin/rtsold/rtsold.c Tue Mar 25 17:17:44 2014 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index