changeset 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 6ae034aa4485
children d6a799421657
files src/protocols/yahoo/yahoo_packet.c src/protocols/yahoo/yahoo_packet.h
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
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;
 
--- a/src/protocols/yahoo/yahoo_packet.h	Mon Feb 13 16:35:02 2006 +0000
+++ b/src/protocols/yahoo/yahoo_packet.h	Mon Feb 13 17:33:32 2006 +0000
@@ -130,7 +130,7 @@
 void yahoo_packet_read(struct yahoo_packet *pkt, guchar *data, int len);
 void yahoo_packet_write(struct yahoo_packet *pkt, guchar *data);
 void yahoo_packet_dump(guchar *data, int len);
-int yahoo_packet_length(struct yahoo_packet *pkt);
+gsize yahoo_packet_length(struct yahoo_packet *pkt);
 void yahoo_packet_free(struct yahoo_packet *pkt);
 
 #endif /* _YAHOO_PACKET_H_ */