[gaim-migrate @ 15641]

Mon, 13 Feb 2006 17:33:32 +0000

author
Richard Laager <rlaager@pidgin.im>
date
Mon, 13 Feb 2006 17:33:32 +0000
changeset 13276
121eb8698b39
parent 13275
a765acf84b3c
child 13277
c8a85dd74704

[gaim-migrate @ 15641]
Make some stuff use gsize instead of int. This seems more correct.

src/protocols/yahoo/yahoo_packet.c file | annotate | diff | comparison | revisions
src/protocols/yahoo/yahoo_packet.h file | annotate | diff | comparison | revisions
--- 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_ */

mercurial