comparison src/protocols/yahoo/yahoo_packet.c @ 11644:f4e58e94ced3

[gaim-migrate @ 13922] Yahoo! whitespace cleanup from Peter Lawler Gracias! committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 12 Oct 2005 04:02:46 +0000
parents 2e71eddc828b
children 33bef17125c2
comparison
equal deleted inserted replaced
11643:eb14bbcf7249 11644:f4e58e94ced3
281 } 281 }
282 282
283 int yahoo_packet_send_and_free(struct yahoo_packet *pkt, struct yahoo_data *yd) 283 int yahoo_packet_send_and_free(struct yahoo_packet *pkt, struct yahoo_data *yd)
284 { 284 {
285 int ret; 285 int ret;
286 286
287 ret = yahoo_packet_send(pkt, yd); 287 ret = yahoo_packet_send(pkt, yd);
288 yahoo_packet_free(pkt); 288 yahoo_packet_free(pkt);
289 return ret; 289 return ret;
290 } 290 }
291 291
304 data = g_malloc0(len + 1); 304 data = g_malloc0(len + 1);
305 305
306 memcpy(data + pos, "YMSG", 4); pos += 4; 306 memcpy(data + pos, "YMSG", 4); pos += 4;
307 307
308 pos += yahoo_put16(data + pos, YAHOO_PROTO_VER); 308 pos += yahoo_put16(data + pos, YAHOO_PROTO_VER);
309
310 pos += yahoo_put16(data + pos, 0x0000); 309 pos += yahoo_put16(data + pos, 0x0000);
311 pos += yahoo_put16(data + pos, pktlen + pad); 310 pos += yahoo_put16(data + pos, pktlen + pad);
312 pos += yahoo_put16(data + pos, pkt->service); 311 pos += yahoo_put16(data + pos, pkt->service);
313 pos += yahoo_put32(data + pos, pkt->status); 312 pos += yahoo_put32(data + pos, pkt->status);
314 pos += yahoo_put32(data + pos, pkt->id); 313 pos += yahoo_put32(data + pos, pkt->id);