Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
13274:6ae034aa4485 | 13275:4f8c85836b41 |
---|---|
80 } | 80 } |
81 } | 81 } |
82 va_end(ap); | 82 va_end(ap); |
83 } | 83 } |
84 | 84 |
85 int yahoo_packet_length(struct yahoo_packet *pkt) | 85 gsize yahoo_packet_length(struct yahoo_packet *pkt) |
86 { | 86 { |
87 GSList *l; | 87 GSList *l; |
88 | 88 |
89 int len = 0; | 89 gsize len = 0; |
90 | 90 |
91 l = pkt->hash; | 91 l = pkt->hash; |
92 while (l) { | 92 while (l) { |
93 struct yahoo_pair *pair = l->data; | 93 struct yahoo_pair *pair = l->data; |
94 int tmp = pair->key; | 94 int tmp = pair->key; |
271 | 271 |
272 | 272 |
273 gsize yahoo_packet_build(struct yahoo_packet *pkt, int pad, gboolean wm, | 273 gsize yahoo_packet_build(struct yahoo_packet *pkt, int pad, gboolean wm, |
274 guchar **buf) | 274 guchar **buf) |
275 { | 275 { |
276 int pktlen = yahoo_packet_length(pkt); | 276 gsize pktlen = yahoo_packet_length(pkt); |
277 int len = YAHOO_PACKET_HDRLEN + pktlen; | 277 gsize len = YAHOO_PACKET_HDRLEN + pktlen; |
278 guchar *data; | 278 guchar *data; |
279 int pos = 0; | 279 int pos = 0; |
280 | 280 |
281 data = g_malloc0(len + 1); | 281 data = g_malloc0(len + 1); |
282 | 282 |