summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-04-16 22:06:48 +0000
committerderaadt <deraadt@openbsd.org>2013-04-16 22:06:48 +0000
commitafc9b73e91e830a1bf122d0545a175158505a9ec (patch)
tree52dab6a34ccf92b634efa4410c977dc994316684
parentremove wrong casts; ok millert (diff)
downloadwireguard-openbsd-afc9b73e91e830a1bf122d0545a175158505a9ec.tar.xz
wireguard-openbsd-afc9b73e91e830a1bf122d0545a175158505a9ec.zip
handle big time_t types; ok guenther
-rw-r--r--sbin/sysctl/sysctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c
index 990b2261b10..9b62beeb73c 100644
--- a/sbin/sysctl/sysctl.c
+++ b/sbin/sysctl/sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysctl.c,v 1.188 2013/04/15 16:47:14 guenther Exp $ */
+/* $OpenBSD: sysctl.c,v 1.189 2013/04/16 22:06:48 deraadt Exp $ */
/* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */
/*
@@ -800,7 +800,7 @@ parse(char *string, int flags)
boottime = btp->tv_sec;
(void)printf("%s%s%s", string, equ, ctime(&boottime));
} else
- (void)printf("%ld\n", btp->tv_sec);
+ (void)printf("%lld\n", (long long)btp->tv_sec);
return;
}
if (special & BLKDEV) {