comparison libpurple/protocols/qq/im.c @ 24670:5ec72dbdd28e

Fix warnings where size_t/gsize was used for printf with the wrong format specifier and fix some free's that should be g_free. Fixes #7782. committer: Elliott Sales de Andrade <qulogic@pidgin.im>
author Paul Aurich <paul@darkrain42.org>
date Sun, 14 Dec 2008 02:58:44 +0000
parents fecedf6d9ee1
children 1300601041ac ca01403251f1
comparison
equal deleted inserted replaced
24669:5b703111614e 24670:5ec72dbdd28e
1256 1256
1257 g_return_val_if_fail(NULL != gc && NULL != gc->proto_data, -1); 1257 g_return_val_if_fail(NULL != gc && NULL != gc->proto_data, -1);
1258 g_return_val_if_fail(who != NULL && what != NULL, -1); 1258 g_return_val_if_fail(who != NULL && what != NULL, -1);
1259 1259
1260 qd = (qq_data *) gc->proto_data; 1260 qd = (qq_data *) gc->proto_data;
1261 purple_debug_info("QQ", "Send IM to %s, len %d:\n%s\n", who, strlen(what), what); 1261 purple_debug_info("QQ", "Send IM to %s, len %" G_GSIZE_FORMAT ":\n%s\n", who, strlen(what), what);
1262 1262
1263 uid_to = purple_name_to_uid(who); 1263 uid_to = purple_name_to_uid(who);
1264 if (uid_to == qd->uid) { 1264 if (uid_to == qd->uid) {
1265 /* if msg is to myself, bypass the network */ 1265 /* if msg is to myself, bypass the network */
1266 serv_got_im(gc, who, what, flags, time(NULL)); 1266 serv_got_im(gc, who, what, flags, time(NULL));