libpurple/protocols/yahoo/yahoo_packet.c

branch
soc.2013.gobjectification
changeset 34889
4ea2da14cd0e
parent 34529
68cf25486001
parent 34304
faf0414a8b51
child 36257
c5445f25f90f
child 36637
9b0109ae118d
--- a/libpurple/protocols/yahoo/yahoo_packet.c	Thu Aug 22 00:32:28 2013 +0530
+++ b/libpurple/protocols/yahoo/yahoo_packet.c	Thu Aug 22 01:35:32 2013 +0530
@@ -139,7 +139,7 @@
 	char key[64];
 	const guchar *delimiter;
 	gboolean accept;
-	int x;
+	guint x;
 	struct yahoo_pair *pair;
 
 	while (pos + 1 < len)
@@ -373,7 +373,7 @@
 		return ret;
 	}
 
-	if (ret < len) {
+	if ((gsize)ret < len) {
 		if (yd->txhandler == 0)
 			yd->txhandler = purple_input_add(yd->fd, PURPLE_INPUT_WRITE,
 				yahoo_packet_send_can_write, yd);

mercurial