From 251c17a0bc55db59b91338d8f306144182755aa4 Mon Sep 17 00:00:00 2001 From: "Jonathan K. Bullard" Date: Fri, 6 Feb 2015 14:49:10 -0500 Subject: [PATCH] Fix mismatch of fprintf format specifier and argument type This fixes a warning about a mismatch between a fprintf format string and an argument type on Darwin-64-bit builds: %lu specifies type 'unsigned long' but the argument has type '__darwin_suseconds_t' (aka 'int') Acked-by: Arne Schwabe Message-Id: URL: http://article.gmane.org/gmane.network.openvpn.devel/9446 Signed-off-by: Gert Doering --- src/openvpn/error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openvpn/error.c b/src/openvpn/error.c index 9d52962ae..77b6cec06 100644 --- a/src/openvpn/error.c +++ b/src/openvpn/error.c @@ -319,7 +319,7 @@ void x_msg_va (const unsigned int flags, const char *format, va_list arglist) fprintf (fp, "%lu.%06lu %x %s%s%s%s", tv.tv_sec, - tv.tv_usec, + (unsigned long)tv.tv_usec, flags, prefix, prefix_sep, -- 2.47.2