From: Jeremie Courreges-Anglas Date: Sun, 5 Nov 2017 09:03:26 +0000 (+0100) Subject: Cast and print another suseconds_t as long X-Git-Tag: v2.5_beta1~564 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10f12d2a61a4e2b44fa7dd4d0c32139258aa6aec;p=thirdparty%2Fopenvpn.git Cast and print another suseconds_t as long Missed in 31b5c0e Acked-by: Steffan Karger Message-Id: <87375t6qas.fsf@ritchie.wxcvbn.org> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15749.html Signed-off-by: Gert Doering --- diff --git a/src/openvpn/forward.c b/src/openvpn/forward.c index a91a8d9aa..1b7455bb9 100644 --- a/src/openvpn/forward.c +++ b/src/openvpn/forward.c @@ -649,7 +649,7 @@ check_timeout_random_component_dowork(struct context *c) c->c2.timeout_random_component.tv_usec = (time_t) get_random() & 0x0003FFFF; c->c2.timeout_random_component.tv_sec = 0; - dmsg(D_INTERVAL, "RANDOM USEC=%d", (int) c->c2.timeout_random_component.tv_usec); + dmsg(D_INTERVAL, "RANDOM USEC=%ld", (long) c->c2.timeout_random_component.tv_usec); } static inline void