Use G_GSIZE_FORMAT instead of %zu
authorFelix Schlitter <felixschlitter@gmail.com>
Mon, 29 Jun 2015 19:37:31 +0000 (07:37 +1200)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Tue, 30 Jun 2015 13:48:33 +0000 (14:48 +0100)
The C runtime on windows does not implement a printf that understands
%zu and other C99 format specifiers. Use G_GSIZE_FORMAT instead. This
is further consistent with the rest of the code base that makes use of
G_GSIZE_FORMAT throughout.

https://github.com/libnice/libnice/pull/3

agent/conncheck.c

index 057fc81..bed3465 100644 (file)
@@ -2957,7 +2957,7 @@ static bool conncheck_stun_validater (StunAgent *agent,
     if (ufrag == NULL)
       continue;
 
-    stun_debug ("Comparing username/ufrag of len %d and %zu, equal=%d",
+    stun_debug ("Comparing username/ufrag of len %d and %" G_GSIZE_FORMAT ", equal=%d",
         username_len, ufrag_len, username_len >= ufrag_len ?
         memcmp (username, ufrag, ufrag_len) : 0);
     stun_debug_bytes ("  username: ", username, username_len);