summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-16 22:06:49 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-16 22:06:49 +0000
commit39c305f6057c2c22235ad0c196e5e061dbf35f6f (patch)
tree64ce4ca094a46fad623d11fdaa812b4415177ce7
parent39398764b16236f3508552b6409ac527c6a67c1d (diff)
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) {