diff libpurple/protocols/jabber/auth.c @ 22475:3225c99785b8

Fix a bunch of compiler warnings caused by my addition of G_GNUC_PRINTF() to our debug functions (I really thought we had added that in a while ago?) I didn't fix all of them... just most of them. Oh, see these pages for a little info: http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html http://library.gnome.org/devel/glib/unstable/glib-Miscellaneous-Macros.html#G-GNUC-PRINTF:CAPS
author Mark Doliner <mark@kingant.net>
date Sun, 16 Mar 2008 20:36:52 +0000
parents b52f690502a4
children aed6cbd18a3b
line wrap: on
line diff
--- a/libpurple/protocols/jabber/auth.c	Sun Mar 16 20:35:23 2008 +0000
+++ b/libpurple/protocols/jabber/auth.c	Sun Mar 16 20:36:52 2008 +0000
@@ -903,8 +903,8 @@
 		}
 
 		dec_in = (char *)purple_base64_decode(enc_in, NULL);
-		purple_debug(PURPLE_DEBUG_MISC, "jabber", "decoded challenge (%d): %s\n",
-				strlen(dec_in), dec_in);
+		purple_debug(PURPLE_DEBUG_MISC, "jabber", "decoded challenge (%"
+				G_GSIZE_FORMAT "): %s\n", strlen(dec_in), dec_in);
 
 		parts = parse_challenge(dec_in);
 
@@ -982,7 +982,9 @@
 
 				enc_out = purple_base64_encode((guchar *)response->str, response->len);
 
-				purple_debug(PURPLE_DEBUG_MISC, "jabber", "decoded response (%d): %s\n", response->len, response->str);
+				purple_debug_misc("jabber", "decoded response (%"
+						G_GSIZE_FORMAT "): %s\n",
+						response->len, response->str);
 
 				buf = g_strdup_printf("<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>%s</response>", enc_out);