diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-12-15 04:03:42 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-12-15 04:03:42 +0000 |
commit | 80d6954430f9200a948a13b3c708eb8e4b26c096 (patch) | |
tree | 3e68f630a80e726d516dfe27e4273daf35494bf7 /main/channel.c | |
parent | 889d8eecec85ae018ab636ccc116c44e250e9b7d (diff) |
constify ast_state2str() and note it is not reentrant.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48477 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/channel.c')
-rw-r--r-- | main/channel.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/main/channel.c b/main/channel.c index ac59eb352..07d099c6a 100644 --- a/main/channel.c +++ b/main/channel.c @@ -516,8 +516,10 @@ int ast_str2cause(const char *name) return -1; } -/*! \brief Gives the string form of a given channel state */ -char *ast_state2str(enum ast_channel_state state) +/*! \brief Gives the string form of a given channel state. + \note This function is not reentrant. + */ +const char *ast_state2str(enum ast_channel_state state) { char *buf; |