summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-04-17 00:13:40 +0000
committerderaadt <deraadt@openbsd.org>2013-04-17 00:13:40 +0000
commit3eb0aa810b2e0de70b6bef069a6fa756c3d7cbeb (patch)
tree3bcae2b8530d52815234799ca81293a70528eb44
parenthandle large time_t types; ok millert (diff)
downloadwireguard-openbsd-3eb0aa810b2e0de70b6bef069a6fa756c3d7cbeb.tar.xz
wireguard-openbsd-3eb0aa810b2e0de70b6bef069a6fa756c3d7cbeb.zip
handle large time_t
-rw-r--r--usr.sbin/rtsold/dump.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/rtsold/dump.c b/usr.sbin/rtsold/dump.c
index 2c70fb218d9..3b641d2d39a 100644
--- a/usr.sbin/rtsold/dump.c
+++ b/usr.sbin/rtsold/dump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dump.c,v 1.12 2008/06/10 04:49:11 reyk Exp $ */
+/* $OpenBSD: dump.c,v 1.13 2013/04/17 00:13:40 deraadt Exp $ */
/* $KAME: dump.c,v 1.10 2002/05/31 10:10:03 itojun Exp $ */
/*
@@ -87,9 +87,9 @@ dump_interface_status(void)
ifinfo->timer.tv_usec == tm_max.tv_usec)
fprintf(fp, " no timer\n");
else {
- fprintf(fp, " timer: interval=%d:%d, expire=%s\n",
- (int)ifinfo->timer.tv_sec,
- (int)ifinfo->timer.tv_usec,
+ fprintf(fp, " timer: interval=%lld:%ld, expire=%s\n",
+ (long long)ifinfo->timer.tv_sec,
+ ifinfo->timer.tv_usec,
(ifinfo->expire.tv_sec < now.tv_sec) ? "expired"
: sec2str(ifinfo->expire.tv_sec - now.tv_sec));
}