summaryrefslogtreecommitdiffstats
path: root/usr.sbin/relayctl
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-04-03 03:10:42 +0000
committerguenther <guenther@openbsd.org>2013-04-03 03:10:42 +0000
commit2954f9ab6bfe34a06413b1865f207ac238ec7507 (patch)
treec63ceef0e65b14ea50ba06aeb08bf62ba07780d5 /usr.sbin/relayctl
parentadd comment for how EINPROGRESS is handled there. (diff)
downloadwireguard-openbsd-2954f9ab6bfe34a06413b1865f207ac238ec7507.tar.xz
wireguard-openbsd-2954f9ab6bfe34a06413b1865f207ac238ec7507.zip
Handle big time_t
ok deraadt@
Diffstat (limited to 'usr.sbin/relayctl')
-rw-r--r--usr.sbin/relayctl/relayctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/relayctl/relayctl.c b/usr.sbin/relayctl/relayctl.c
index c78886ec032..ab66709ab38 100644
--- a/usr.sbin/relayctl/relayctl.c
+++ b/usr.sbin/relayctl/relayctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relayctl.c,v 1.46 2013/03/10 23:32:53 reyk Exp $ */
+/* $OpenBSD: relayctl.c,v 1.47 2013/04/03 03:10:42 guenther Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -312,7 +312,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)