--- 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);