diff options
author | Russell Bryant <russell@russellbryant.com> | 2007-07-30 19:31:27 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2007-07-30 19:31:27 +0000 |
commit | 06f618a1cae6801f76309b322a4701f408ca0381 (patch) | |
tree | 24fd8a65b3f36659e32d68966adefa1ed7161472 /main | |
parent | 935982d15b3b0c943cc0235f68cdb110f7207246 (diff) |
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
Diffstat (limited to 'main')
-rw-r--r-- | main/manager.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/main/manager.c b/main/manager.c index 9bddd4872..41faffd09 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 /*! |