Mercurial > pidgin.yaz
diff src/protocols/qq/buddy_opt.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 |
line wrap: on
line diff
--- a/src/protocols/qq/buddy_opt.c Tue Aug 08 01:12:58 2006 +0000 +++ b/src/protocols/qq/buddy_opt.c Tue Aug 08 23:20:08 2006 +0000 @@ -64,7 +64,8 @@ g_return_if_fail(gc != NULL && uid > 0); uid_str = g_strdup_printf("%d", uid); - qq_send_cmd(gc, QQ_CMD_DEL_FRIEND, TRUE, 0, TRUE, uid_str, strlen(uid_str)); + qq_send_cmd(gc, QQ_CMD_DEL_FRIEND, TRUE, 0, + TRUE, (guint8 *) uid_str, strlen(uid_str)); g_free(uid_str); } @@ -94,7 +95,8 @@ /* we need to send the ascii code of this uid to qq server */ uid_str = g_strdup_printf("%d", uid); - qq_send_cmd(gc, QQ_CMD_ADD_FRIEND_WO_AUTH, TRUE, 0, TRUE, uid_str, strlen(uid_str)); + qq_send_cmd(gc, QQ_CMD_ADD_FRIEND_WO_AUTH, TRUE, 0, + TRUE, (guint8 *) uid_str, strlen(uid_str)); g_free(uid_str); /* must be set after sending packet to get the correct send_seq */ @@ -118,14 +120,14 @@ raw_data = g_newa(guint8, QQ_MSG_IM_MAX); cursor = raw_data; - create_packet_data(raw_data, &cursor, uid_str, strlen(uid_str)); + create_packet_data(raw_data, &cursor, (guint8 *) uid_str, strlen(uid_str)); create_packet_b(raw_data, &cursor, bar); create_packet_b(raw_data, &cursor, response); if (text != NULL) { text_qq = utf8_to_qq(text, QQ_CHARSET_DEFAULT); create_packet_b(raw_data, &cursor, bar); - create_packet_data(raw_data, &cursor, text_qq, strlen(text_qq)); + create_packet_data(raw_data, &cursor, (guint8 *) text_qq, strlen(text_qq)); g_free(text_qq); } @@ -342,7 +344,8 @@ { qq_data *qd; gint len, for_uid; - gchar *msg, *data, **segments, *uid, *reply; + gchar *msg, **segments, *uid, *reply; + guint8 *data; GList *list; GaimBuddy *b; gc_and_uid *g;