comparison src/protocols/qq/sys_msg.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
117 cursor = ack; 117 cursor = ack;
118 bytes = 0; 118 bytes = 0;
119 119
120 bytes += create_packet_b(ack, &cursor, code); 120 bytes += create_packet_b(ack, &cursor, code);
121 bytes += create_packet_b(ack, &cursor, bar); 121 bytes += create_packet_b(ack, &cursor, bar);
122 bytes += create_packet_data(ack, &cursor, str, strlen(str)); 122 bytes += create_packet_data(ack, &cursor, (guint8 *) str, strlen(str));
123 bytes += create_packet_b(ack, &cursor, bar); 123 bytes += create_packet_b(ack, &cursor, bar);
124 bytes += create_packet_w(ack, &cursor, seq); 124 bytes += create_packet_w(ack, &cursor, seq);
125 125
126 g_free(str); 126 g_free(str);
127 127
261 g_return_if_fail(gc != NULL && gc->proto_data != NULL); 261 g_return_if_fail(gc != NULL && gc->proto_data != NULL);
262 g_return_if_fail(buf != NULL && buf_len != 0); 262 g_return_if_fail(buf != NULL && buf_len != 0);
263 263
264 qd = (qq_data *) gc->proto_data; 264 qd = (qq_data *) gc->proto_data;
265 len = buf_len; 265 len = buf_len;
266 data = g_newa(gchar, len); 266 data = g_newa(guint8, len);
267 267
268 if (qq_crypt(DECRYPT, buf, buf_len, qd->session_key, data, &len)) { 268 if (qq_crypt(DECRYPT, buf, buf_len, qd->session_key, data, &len)) {
269 if (NULL == (segments = split_data(data, len, "\x1f", 4))) 269 if (NULL == (segments = split_data(data, len, "\x1f", 4)))
270 return; 270 return;
271 code = segments[0]; 271 code = segments[0];