Fix a couple of format warnings
authorRicardo Mones <ricardo@mones.org>
Sat, 6 Jun 2015 00:54:36 +0000 (02:54 +0200)
committerRicardo Mones <ricardo@mones.org>
Sat, 6 Jun 2015 00:54:36 +0000 (02:54 +0200)
• utils.c:5569:3: warning: format '%d' expects argument of type 'int',
  but argument 4 has type 'size_t' [-Wformat=]
• utils.c:5569:3: warning: format '%d' expects argument of type 'int',
  but argument 5 has type 'gsize' [-Wformat=]

src/common/utils.c

index a135a9952183f37e953e59daf38fa03e7394e629..27a02f46b295dbf3dd93db43bc7e083b1a5b605b 100644 (file)
@@ -5566,7 +5566,7 @@ guchar *g_base64_decode_zero(const gchar *text, gsize *out_len)
        g_free(tmp);
 
        if (strlen(out) != *out_len) {
-               g_warning ("strlen(out) %d != *out_len %d", strlen(out), *out_len);
+               g_warning ("strlen(out) %zd != *out_len %" G_GSIZE_FORMAT, strlen(out), *out_len);
        }
 
        return out;