Mercurial > pidgin
comparison src/protocols/oscar/tlv.c @ 10990:8d74ae785a46
[gaim-migrate @ 12828]
More compile warning getting rid of. Also fix the crash from my last
batch of comile warning getting rid ofs.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 09 Jun 2005 04:33:52 +0000 |
parents | ecc0f22db510 |
children | 1798ad0be460 |
comparison
equal
deleted
inserted
replaced
10989:b4919e8c634c | 10990:8d74ae785a46 |
---|---|
470 * @param value Value to add. | 470 * @param value Value to add. |
471 * @return The size of the value added. | 471 * @return The size of the value added. |
472 */ | 472 */ |
473 faim_internal int aim_tlvlist_add_string(aim_tlvlist_t **list, const fu16_t type, const char *value) | 473 faim_internal int aim_tlvlist_add_string(aim_tlvlist_t **list, const fu16_t type, const char *value) |
474 { | 474 { |
475 return aim_tlvlist_add_raw(list, type, strlen(value), (fu8_t)value); | 475 return aim_tlvlist_add_raw(list, type, strlen(value), (fu8_t *)value); |
476 } | 476 } |
477 | 477 |
478 /** | 478 /** |
479 * Adds a block of capability blocks to a TLV chain. The bitfield | 479 * Adds a block of capability blocks to a TLV chain. The bitfield |
480 * passed in should be a bitwise %OR of any of the %AIM_CAPS constants: | 480 * passed in should be a bitwise %OR of any of the %AIM_CAPS constants: |
547 | 547 |
548 aim_bstream_init(&bs, buf, len); | 548 aim_bstream_init(&bs, buf, len); |
549 | 549 |
550 aimbs_put16(&bs, exchange); | 550 aimbs_put16(&bs, exchange); |
551 aimbs_put8(&bs, strlen(roomname)); | 551 aimbs_put8(&bs, strlen(roomname)); |
552 aimbs_putraw(&bs, roomname, strlen(roomname)); | 552 aimbs_putstr(&bs, roomname); |
553 aimbs_put16(&bs, instance); | 553 aimbs_put16(&bs, instance); |
554 | 554 |
555 len = aim_tlvlist_add_raw(list, type, aim_bstream_curpos(&bs), buf); | 555 len = aim_tlvlist_add_raw(list, type, aim_bstream_curpos(&bs), buf); |
556 | 556 |
557 free(buf); | 557 free(buf); |