]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
constify ast_state2str() and note it is not reentrant.
authorLuigi Rizzo <rizzo@icir.org>
Fri, 15 Dec 2006 04:03:42 +0000 (04:03 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Fri, 15 Dec 2006 04:03:42 +0000 (04:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48477 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/channel.h
main/channel.c

index 0ce88200aeb9f0db9012b00b8fe0effd1b63b7ee..88ba77dbcdf5c0f994defff5fbf942be2f366ef4 100644 (file)
@@ -1060,7 +1060,7 @@ int ast_str2cause(const char *name) attribute_pure;
  * Give a name to a state 
  * Returns the text form of the binary state given
  */
-char *ast_state2str(enum ast_channel_state);
+const char *ast_state2str(enum ast_channel_state);
 
 /*! Gives the string form of a given transfer capability */
 /*!
index ac59eb352172b02497f79290bc9aa1bfec1cbbe8..07d099c6aaa7ad779ba196ea8a1073ed319bf15e 100644 (file)
@@ -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;