diff src/protocols/yahoo/yahoo_packet.c @ 13275:4f8c85836b41

[gaim-migrate @ 15641] Make some stuff use gsize instead of int. This seems more correct. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Mon, 13 Feb 2006 17:33:32 +0000
parents 33bef17125c2
children d6a799421657
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo_packet.c	Mon Feb 13 16:35:02 2006 +0000
+++ b/src/protocols/yahoo/yahoo_packet.c	Mon Feb 13 17:33:32 2006 +0000
@@ -82,11 +82,11 @@
 	va_end(ap);
 }
 
-int yahoo_packet_length(struct yahoo_packet *pkt)
+gsize yahoo_packet_length(struct yahoo_packet *pkt)
 {
 	GSList *l;
 
-	int len = 0;
+	gsize len = 0;
 
 	l = pkt->hash;
 	while (l) {
@@ -273,8 +273,8 @@
 gsize yahoo_packet_build(struct yahoo_packet *pkt, int pad, gboolean wm,
 			 guchar **buf)
 {
-	int pktlen = yahoo_packet_length(pkt);
-	int len = YAHOO_PACKET_HDRLEN + pktlen;
+	gsize pktlen = yahoo_packet_length(pkt);
+	gsize len = YAHOO_PACKET_HDRLEN + pktlen;
 	guchar *data;
 	int pos = 0;