Mercurial > pidgin.yaz
comparison src/protocols/oscar/tlv.c @ 2421:95b4ec08abec
[gaim-migrate @ 2434]
stuff
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 03 Oct 2001 20:36:33 +0000 |
parents | d82efea341ef |
children | 9467e4ee81be |
comparison
equal
deleted
inserted
replaced
2420:938a432173b4 | 2421:95b4ec08abec |
---|---|
264 faim_internal int aim_addtlvtochain_caps(aim_tlvlist_t **list, const fu16_t t, const fu16_t caps) | 264 faim_internal int aim_addtlvtochain_caps(aim_tlvlist_t **list, const fu16_t t, const fu16_t caps) |
265 { | 265 { |
266 fu8_t buf[16*16]; /* icky fixed length buffer */ | 266 fu8_t buf[16*16]; /* icky fixed length buffer */ |
267 aim_bstream_t bs; | 267 aim_bstream_t bs; |
268 | 268 |
269 if (!caps) | |
270 return 0; /* nothing there anyway */ | |
271 | |
269 aim_bstream_init(&bs, buf, sizeof(buf)); | 272 aim_bstream_init(&bs, buf, sizeof(buf)); |
270 | 273 |
271 aim_putcap(&bs, caps); | 274 aim_putcap(&bs, caps); |
272 | 275 |
273 return aim_addtlvtochain_raw(list, t, aim_bstream_curpos(&bs), buf); | 276 return aim_addtlvtochain_raw(list, t, aim_bstream_curpos(&bs), buf); |
274 } | 277 } |
275 | 278 |
276 faim_internal int aim_addtlvtochain_userinfo(aim_tlvlist_t **list, fu16_t type, struct aim_userinfo_s *ui) | 279 faim_internal int aim_addtlvtochain_userinfo(aim_tlvlist_t **list, fu16_t type, aim_userinfo_t *ui) |
277 { | 280 { |
278 fu8_t buf[1024]; /* bleh */ | 281 fu8_t buf[1024]; /* bleh */ |
279 aim_bstream_t bs; | 282 aim_bstream_t bs; |
280 | 283 |
281 aim_bstream_init(&bs, buf, sizeof(buf)); | 284 aim_bstream_init(&bs, buf, sizeof(buf)); |