diff 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
line wrap: on
line diff
--- a/src/protocols/qq/sys_msg.c	Tue Aug 08 01:12:58 2006 +0000
+++ b/src/protocols/qq/sys_msg.c	Tue Aug 08 23:20:08 2006 +0000
@@ -119,7 +119,7 @@
 
 	bytes += create_packet_b(ack, &cursor, code);
 	bytes += create_packet_b(ack, &cursor, bar);
-	bytes += create_packet_data(ack, &cursor, str, strlen(str));
+	bytes += create_packet_data(ack, &cursor, (guint8 *) str, strlen(str));
 	bytes += create_packet_b(ack, &cursor, bar);
 	bytes += create_packet_w(ack, &cursor, seq);
 
@@ -263,7 +263,7 @@
 
 	qd = (qq_data *) gc->proto_data;
 	len = buf_len;
-	data = g_newa(gchar, len);
+	data = g_newa(guint8, len);
 
 	if (qq_crypt(DECRYPT, buf, buf_len, qd->session_key, data, &len)) {
 		if (NULL == (segments = split_data(data, len, "\x1f", 4)))