]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Cast and print another suseconds_t as long
authorJeremie Courreges-Anglas <jca@wxcvbn.org>
Sun, 5 Nov 2017 09:03:26 +0000 (10:03 +0100)
committerGert Doering <gert@greenie.muc.de>
Fri, 10 Nov 2017 13:15:54 +0000 (14:15 +0100)
Missed in 31b5c0e
Acked-by: Steffan Karger <steffan.karger@fox-it.com>
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 <gert@greenie.muc.de>
src/openvpn/forward.c

index a91a8d9aa5dfb48e75047fb056d81613cbcd990c..1b7455bb91bbe3b98bd7a2dce1a791ecdb250736 100644 (file)
@@ -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