Mercurial > pidgin
diff libgaim/protocols/yahoo/yahoo_packet.c @ 14259:0ac0f16aa006
[gaim-migrate @ 16941]
silence some warnings by casting several things to (char *) that are actually unsigned char *'s.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Mon, 21 Aug 2006 04:42:11 +0000 |
parents | 60b1bc8dbf37 |
children | accae094598f |
line wrap: on
line diff
--- a/libgaim/protocols/yahoo/yahoo_packet.c Mon Aug 21 04:12:07 2006 +0000 +++ b/libgaim/protocols/yahoo/yahoo_packet.c Mon Aug 21 04:42:11 2006 +0000 @@ -113,7 +113,7 @@ void yahoo_packet_read(struct yahoo_packet *pkt, const guchar *data, int len) { int pos = 0; - char key[64], *delimiter, *esc; + char key[64], *delimiter; gboolean accept; int x; struct yahoo_pair *pair; @@ -174,10 +174,13 @@ pkt->hash = g_slist_prepend(pkt->hash, pair); #ifdef DEBUG - esc = g_strescape(pair->value, NULL); - gaim_debug(GAIM_DEBUG_MISC, "yahoo", - "Key: %d \tValue: %s\n", pair->key, esc); - g_free(esc); + { + char *esc; + esc = g_strescape(pair->value, NULL); + gaim_debug(GAIM_DEBUG_MISC, "yahoo", + "Key: %d \tValue: %s\n", pair->key, esc); + g_free(esc); + } #endif } else { g_free(pair);