diff options
-rw-r--r-- | usr.sbin/ikectl/ikectl.c | 4 | ||||
-rw-r--r-- | usr.sbin/rdate/rdate.c | 6 | ||||
-rw-r--r-- | usr.sbin/snmpctl/snmpctl.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/ikectl/ikectl.c b/usr.sbin/ikectl/ikectl.c index 3b035b0d3e2..c1fb1dd3545 100644 --- a/usr.sbin/ikectl/ikectl.c +++ b/usr.sbin/ikectl/ikectl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ikectl.c,v 1.16 2013/01/08 10:38:19 reyk Exp $ */ +/* $OpenBSD: ikectl.c,v 1.17 2013/08/16 19:47:42 guenther Exp $ */ /* * Copyright (c) 2007-2013 Reyk Floeter <reyk@openbsd.org> @@ -366,7 +366,7 @@ monitor(struct imsg *imsg) imn = monitor_lookup(imsg->hdr.type); printf("%s: imsg type %u len %u peerid %u pid %d\n", imn->name, imsg->hdr.type, imsg->hdr.len, imsg->hdr.peerid, imsg->hdr.pid); - printf("\ttimestamp: %u, %s", now, ctime(&now)); + printf("\ttimestamp: %lld, %s", (long long)now, ctime(&now)); if (imn->type == -1) done = 1; if (imn->func != NULL) diff --git a/usr.sbin/rdate/rdate.c b/usr.sbin/rdate/rdate.c index d5bd97dbc16..fc5f4971e71 100644 --- a/usr.sbin/rdate/rdate.c +++ b/usr.sbin/rdate/rdate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rdate.c,v 1.28 2013/04/20 20:39:14 millert Exp $ */ +/* $OpenBSD: rdate.c,v 1.29 2013/08/16 19:47:43 guenther Exp $ */ /* $NetBSD: rdate.c,v 1.4 1996/03/16 12:37:45 pk Exp $ */ /* @@ -163,8 +163,8 @@ main(int argc, char **argv) __progname, adjsec); else (void) fprintf(stdout, - "%s: adjust local clock by %ld seconds\n", - __progname, adjust.tv_sec); + "%s: adjust local clock by %lld seconds\n", + __progname, (long long)adjust.tv_sec); } } diff --git a/usr.sbin/snmpctl/snmpctl.c b/usr.sbin/snmpctl/snmpctl.c index d7c50fa9c5f..2a34ba819d8 100644 --- a/usr.sbin/snmpctl/snmpctl.c +++ b/usr.sbin/snmpctl/snmpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: snmpctl.c,v 1.15 2013/05/07 09:32:58 jsg Exp $ */ +/* $OpenBSD: snmpctl.c,v 1.16 2013/08/16 19:47:43 guenther Exp $ */ /* * Copyright (c) 2007, 2008 Reyk Floeter <reyk@openbsd.org> @@ -250,7 +250,7 @@ monitor(struct imsg *imsg) imn = monitor_lookup(imsg->hdr.type); printf("%s: imsg type %u len %u peerid %u pid %d\n", imn->name, imsg->hdr.type, imsg->hdr.len, imsg->hdr.peerid, imsg->hdr.pid); - printf("\ttimestamp: %u, %s", now, ctime(&now)); + printf("\ttimestamp: %lld, %s", (long long)now, ctime(&now)); if (imn->type == -1) done = 1; if (imn->func != NULL) |