# HG changeset patch # User Mark Doliner # Date 1082808223 0 # Node ID 4048e93b8ecef7bdc874eae4faf1085efdd6fa9e # Parent d72a23b2bfb5ff4c4130ad72f4e645984450f937 [gaim-migrate @ 9556] Yay committer: Tailor Script diff -r d72a23b2bfb5 -r 4048e93b8ece src/protocols/oscar/tlv.c --- a/src/protocols/oscar/tlv.c Sat Apr 24 11:58:42 2004 +0000 +++ b/src/protocols/oscar/tlv.c Sat Apr 24 12:03:43 2004 +0000 @@ -570,8 +570,9 @@ * @param list Destination chain. * @param type TLV type to add. * @param t1 The TLV chain you want to write. - * @return The number of bytes that would be needed to - * write the passed TLV chain to a data buffer. + * @return The number of bytes written to the destination TLV chain. + * 0 is returned if there was an error or if the destination + * TLV chain has length 0. */ faim_internal int aim_tlvlist_add_frozentlvlist(aim_tlvlist_t **list, fu16_t type, aim_tlvlist_t **tl) { @@ -717,7 +718,7 @@ } /** - * aim_tlvlist_write - Write a TLV chain into a data buffer. + * Write a TLV chain into a data buffer. * * Copies a TLV chain into a raw data buffer, writing only the number * of bytes specified. This operation does not free the chain; @@ -728,7 +729,7 @@ * * @param bs Input bstream * @param list Source TLV chain - * @return Return 0 if there is not enough buffer, otherwise return 1. + * @return Return 0 if the destination bstream is too small. */ faim_internal int aim_tlvlist_write(aim_bstream_t *bs, aim_tlvlist_t **list) {