summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-04-17 15:31:49 +0000
committerderaadt <deraadt@openbsd.org>2013-04-17 15:31:49 +0000
commitebe95ae908bc49b03cd2f9b183631c568e25c8e8 (patch)
tree1f4c853322cb742c678af5e4b263b21ce42e3fa2 /lib
parentlarge time_t problems (diff)
downloadwireguard-openbsd-ebe95ae908bc49b03cd2f9b183631c568e25c8e8.tar.xz
wireguard-openbsd-ebe95ae908bc49b03cd2f9b183631c568e25c8e8.zip
(long long) and %lld for big time_t
ok nicm, who will pass it upstream
Diffstat (limited to 'lib')
-rw-r--r--lib/libevent/event.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libevent/event.c b/lib/libevent/event.c
index d1618c9d0b1..9a6c70b316f 100644
--- a/lib/libevent/event.c
+++ b/lib/libevent/event.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: event.c,v 1.26 2012/08/28 09:09:56 pascal Exp $ */
+/* $OpenBSD: event.c,v 1.27 2013/04/17 15:31:49 deraadt Exp $ */
/*
* Copyright (c) 2000-2004 Niels Provos <provos@citi.umich.edu>
@@ -794,8 +794,8 @@ event_add(struct event *ev, const struct timeval *tv)
evutil_timeradd(&now, tv, &ev->ev_timeout);
event_debug((
- "event_add: timeout in %ld seconds, call %p",
- tv->tv_sec, ev->ev_callback));
+ "event_add: timeout in %lld seconds, call %p",
+ (long long)tv->tv_sec, ev->ev_callback));
event_queue_insert(base, ev, EVLIST_TIMEOUT);
}
@@ -884,7 +884,7 @@ timeout_next(struct event_base *base, struct timeval **tv_p)
assert(tv->tv_sec >= 0);
assert(tv->tv_usec >= 0);
- event_debug(("timeout_next: in %ld seconds", tv->tv_sec));
+ event_debug(("timeout_next: in %lld seconds", (long long)tv->tv_sec));
return (0);
}