Mercurial > pidgin.yaz
comparison src/protocols/qq/group_info.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 |
---|---|
155 } | 155 } |
156 | 156 |
157 void qq_process_group_cmd_get_group_info(guint8 *data, guint8 **cursor, gint len, GaimConnection *gc) | 157 void qq_process_group_cmd_get_group_info(guint8 *data, guint8 **cursor, gint len, GaimConnection *gc) |
158 { | 158 { |
159 qq_group *group; | 159 qq_group *group; |
160 qq_buddy *member; | |
160 qq_data *qd; | 161 qq_data *qd; |
162 GaimConversation *gaim_conv; | |
161 guint8 orgnization, role; | 163 guint8 orgnization, role; |
162 guint16 unknown; | 164 guint16 unknown; |
163 guint32 member_uid, internal_group_id; | 165 guint32 member_uid, internal_group_id; |
164 gint pascal_len, i; | 166 gint pascal_len, i; |
165 guint32 unknown4; | 167 guint32 unknown4; |
204 read_packet_b(data, cursor, len, &role); | 206 read_packet_b(data, cursor, len, &role); |
205 | 207 |
206 if(orgnization != 0 || role != 0) { | 208 if(orgnization != 0 || role != 0) { |
207 gaim_debug(GAIM_DEBUG_INFO, "QQ", "group member %d: orgnizatio=%d, role=%d\n", member_uid, orgnization, role); | 209 gaim_debug(GAIM_DEBUG_INFO, "QQ", "group member %d: orgnizatio=%d, role=%d\n", member_uid, orgnization, role); |
208 } | 210 } |
209 qq_buddy *member = qq_group_find_or_add_member(gc, group, member_uid); | 211 member = qq_group_find_or_add_member(gc, group, member_uid); |
210 member->role = role; | 212 member->role = role; |
211 } | 213 } |
212 if(*cursor > (data + len)) { | 214 if(*cursor > (data + len)) { |
213 gaim_debug(GAIM_DEBUG_ERROR, "QQ", "group_cmd_get_group_info: Dangerous error! maybe protocal changed, notify me!"); | 215 gaim_debug(GAIM_DEBUG_ERROR, "QQ", "group_cmd_get_group_info: Dangerous error! maybe protocal changed, notify me!"); |
214 } | 216 } |
218 if (group->creator_uid == qd->uid) | 220 if (group->creator_uid == qd->uid) |
219 group->my_status = QQ_GROUP_MEMBER_STATUS_IS_ADMIN; | 221 group->my_status = QQ_GROUP_MEMBER_STATUS_IS_ADMIN; |
220 | 222 |
221 qq_group_refresh(gc, group); | 223 qq_group_refresh(gc, group); |
222 | 224 |
223 GaimConversation *gaim_conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_CHAT,group->group_name_utf8, gaim_connection_get_account(gc)); | 225 gaim_conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_CHAT, |
226 group->group_name_utf8, gaim_connection_get_account(gc)); | |
224 if(NULL == gaim_conv) { | 227 if(NULL == gaim_conv) { |
225 gaim_debug(GAIM_DEBUG_WARNING, "QQ", | 228 gaim_debug(GAIM_DEBUG_WARNING, "QQ", |
226 "Conv windows for \"%s\" is not on, do not set topic\n", group->group_name_utf8); | 229 "Conv windows for \"%s\" is not on, do not set topic\n", group->group_name_utf8); |
227 } | 230 } |
228 else { | 231 else { |