summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-04-17 00:14:37 +0000
committerderaadt <deraadt@openbsd.org>2013-04-17 00:14:37 +0000
commit551e89d2301120af883a92eebd00ad5586435036 (patch)
treecc111d7adc6d54caca701637d1172347675de60f
parenthandle large time_t (diff)
downloadwireguard-openbsd-551e89d2301120af883a92eebd00ad5586435036.tar.xz
wireguard-openbsd-551e89d2301120af883a92eebd00ad5586435036.zip
handle large tv_sec
-rw-r--r--usr.sbin/rtadvd/rtadvd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/rtadvd/rtadvd.c b/usr.sbin/rtadvd/rtadvd.c
index 37757b4e8ab..2ca6ea94c25 100644
--- a/usr.sbin/rtadvd/rtadvd.c
+++ b/usr.sbin/rtadvd/rtadvd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtadvd.c,v 1.40 2012/07/08 10:46:00 phessler Exp $ */
+/* $OpenBSD: rtadvd.c,v 1.41 2013/04/17 00:14:37 deraadt Exp $ */
/* $KAME: rtadvd.c,v 1.66 2002/05/29 14:18:36 itojun Exp $ */
/*
@@ -283,10 +283,10 @@ main(argc, argv)
timeout = rtadvd_check_timer();
if (timeout != NULL)
- log_debug("set timer to %ld:%ld. waiting for "
+ log_debug("set timer to %lld.%ld. waiting for "
"inputs or timeout",
- (long int)timeout->tv_sec,
- (long int)timeout->tv_usec);
+ (long long)timeout->tv_sec,
+ timeout->tv_usec);
else
log_debug("there's no timer. waiting for inputs");