Mercurial > pidgin.yaz
comparison src/protocols/qq/group_network.c @ 14058:32a71e64ceae
[gaim-migrate @ 16673]
Eliminated a number of warnings. Generally, this consisted of fixing incorrectly declared data types and adding a few casts. I also moved some declarations that occurred in the middle of code. Minor formatting changes.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Huetsch <markhuetsch> |
---|---|
date | Tue, 08 Aug 2006 23:20:08 +0000 |
parents | ef8490f9e823 |
children |
comparison
equal
deleted
inserted
replaced
14057:44b42bb2c5f8 | 14058:32a71e64ceae |
---|---|
79 static void _qq_process_group_cmd_reply_error_default(guint8 reply, guint8 *cursor, gint len, GaimConnection *gc) | 79 static void _qq_process_group_cmd_reply_error_default(guint8 reply, guint8 *cursor, gint len, GaimConnection *gc) |
80 { | 80 { |
81 gchar *msg, *msg_utf8; | 81 gchar *msg, *msg_utf8; |
82 g_return_if_fail(cursor != NULL && len > 0 && gc != NULL); | 82 g_return_if_fail(cursor != NULL && len > 0 && gc != NULL); |
83 | 83 |
84 msg = g_strndup(cursor, len); /* it will append 0x00 */ | 84 msg = g_strndup((gchar *) cursor, len); /* it will append 0x00 */ |
85 msg_utf8 = qq_to_utf8(msg, QQ_CHARSET_DEFAULT); | 85 msg_utf8 = qq_to_utf8(msg, QQ_CHARSET_DEFAULT); |
86 g_free(msg); | 86 g_free(msg); |
87 msg = g_strdup_printf(_("Code [0x%02X]: %s"), reply, msg_utf8); | 87 msg = g_strdup_printf(_("Code [0x%02X]: %s"), reply, msg_utf8); |
88 gaim_notify_error(gc, NULL, _("Group Operation Error"), msg); | 88 gaim_notify_error(gc, NULL, _("Group Operation Error"), msg); |
89 g_free(msg); | 89 g_free(msg); |