Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
22474:9511acb88e58 | 22475:3225c99785b8 |
---|---|
901 _("Invalid response from server.")); | 901 _("Invalid response from server.")); |
902 return; | 902 return; |
903 } | 903 } |
904 | 904 |
905 dec_in = (char *)purple_base64_decode(enc_in, NULL); | 905 dec_in = (char *)purple_base64_decode(enc_in, NULL); |
906 purple_debug(PURPLE_DEBUG_MISC, "jabber", "decoded challenge (%d): %s\n", | 906 purple_debug(PURPLE_DEBUG_MISC, "jabber", "decoded challenge (%" |
907 strlen(dec_in), dec_in); | 907 G_GSIZE_FORMAT "): %s\n", strlen(dec_in), dec_in); |
908 | 908 |
909 parts = parse_challenge(dec_in); | 909 parts = parse_challenge(dec_in); |
910 | 910 |
911 | 911 |
912 if (g_hash_table_lookup(parts, "rspauth")) { | 912 if (g_hash_table_lookup(parts, "rspauth")) { |
980 g_free(auth_resp); | 980 g_free(auth_resp); |
981 g_free(cnonce); | 981 g_free(cnonce); |
982 | 982 |
983 enc_out = purple_base64_encode((guchar *)response->str, response->len); | 983 enc_out = purple_base64_encode((guchar *)response->str, response->len); |
984 | 984 |
985 purple_debug(PURPLE_DEBUG_MISC, "jabber", "decoded response (%d): %s\n", response->len, response->str); | 985 purple_debug_misc("jabber", "decoded response (%" |
986 G_GSIZE_FORMAT "): %s\n", | |
987 response->len, response->str); | |
986 | 988 |
987 buf = g_strdup_printf("<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>%s</response>", enc_out); | 989 buf = g_strdup_printf("<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>%s</response>", enc_out); |
988 | 990 |
989 jabber_send_raw(js, buf, -1); | 991 jabber_send_raw(js, buf, -1); |
990 | 992 |