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')
--- openvpn/src/openvpn/error.c 2015-01-23 13:17:50.000000000 -0500
+++ patched/src/openvpn/error.c 2015-02-03 22:12:32.000000000 -0500
@@ -319,7 +319,7 @@
 
              fprintf (fp, "%lu.%06lu %x %s%s%s%s",
                       tv.tv_sec,
-                      tv.tv_usec,
+                      (unsigned long)tv.tv_usec,
                       flags,
                       prefix,
                       prefix_sep,

Reply via email to