From: Pekka Riikonen Date: Sat, 28 Oct 2006 13:43:15 +0000 (+0000) Subject: Comment changes. X-Git-Tag: silc.client.1.1.beta1~227 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=65cd97e491cf4bb282269bb018f395a475de4b5c;p=silc.git Comment changes. --- diff --git a/lib/silcutil/silcbuffer.h b/lib/silcutil/silcbuffer.h index b88af80e..5356b3b2 100644 --- a/lib/silcutil/silcbuffer.h +++ b/lib/silcutil/silcbuffer.h @@ -105,8 +105,8 @@ * section. Tail section can be pulled towards end, and thus the data * section becomes larger. * - * SILC Buffer is not thread-safe. If the same buffer context must be used - * in multithreaded environment concurrency control must be employed. + * SILC Buffer is not thread-safe. If the same SilcBuffer context must be + * used in multithreaded environment concurrency control must be employed. * * SOURCE */ @@ -270,6 +270,11 @@ SilcBuffer silc_buffer_alloc(SilcUInt32 len) * * Frees SilcBuffer. Can be called safely `sb' as NULL. * + * NOTES + * + * Must not be called for buffers allocated with silc_buffer_salloc, + * silc_buffer_salloc_size, silc_buffer_scopy and silc_buffer_sclone. + * ***/ static inline @@ -326,6 +331,11 @@ unsigned char *silc_buffer_steal(SilcBuffer sb, SilcUInt32 *data_len) * not the buffer itself. The `sb' remains intact, data is freed. Buffer * is ready for re-use after calling this function. * + * NOTES + * + * Must not be called for buffers allocated with silc_buffer_salloc, + * silc_buffer_salloc_size, silc_buffer_scopy and silc_buffer_sclone. + * ***/ static inline