From: Russell Bryant Date: Mon, 30 Jul 2007 19:31:27 +0000 (+0000) Subject: Remove an XXX comment noting that it would be nice for a declaration to be X-Git-Tag: 1.6.0-beta1~3^2~1863 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=06f618a1cae6801f76309b322a4701f408ca0381;p=thirdparty%2Fasterisk.git Remove an XXX comment noting that it would be nice for a declaration to be inside of a function. (Yes, it would!) Replace it with a note that explains why it can't be done using the way that the AST_THREADSTORAGE macro is currently defined. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77790 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/manager.c b/main/manager.c index 9bddd48720..41faffd09f 100644 --- a/main/manager.c +++ b/main/manager.c @@ -832,8 +832,15 @@ static int send_string(struct mansession *s, char *string) return n < 0 ? -1 : 0; } -/* XXX see if it can be moved inside the function */ +/*! + * \brief thread local buffer for astman_append + * + * \note This can not be defined within the astman_append() function + * because it declares a couple of functions that get used to + * initialize the thread local storage key. + */ AST_THREADSTORAGE(astman_append_buf); +/*! \brief initial allocated size for the astman_append_buf */ #define ASTMAN_APPEND_BUF_INITSIZE 256 /*!