From: Richard L. <rl...@us...> - 2006-02-13 17:33:45
|
Update of /cvsroot/gaim/gaim/src/protocols/yahoo In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14182 Modified Files: yahoo_packet.c yahoo_packet.h Log Message: Make some stuff use gsize instead of int. This seems more correct. Index: yahoo_packet.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/yahoo/yahoo_packet.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -p -r1.5 -r1.6 --- yahoo_packet.c 9 Feb 2006 04:17:56 -0000 1.5 +++ yahoo_packet.c 13 Feb 2006 17:33:32 -0000 1.6 @@ -82,11 +82,11 @@ void yahoo_packet_hash(struct yahoo_pack 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 @@ yahoo_packet_send_can_write(gpointer dat 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; Index: yahoo_packet.h =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/yahoo/yahoo_packet.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -p -r1.7 -r1.8 --- yahoo_packet.h 9 Feb 2006 04:17:56 -0000 1.7 +++ yahoo_packet.h 13 Feb 2006 17:33:32 -0000 1.8 @@ -130,7 +130,7 @@ guchar **buf); 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_ */ |