[asterisk-commits] russell: trunk r79176 - in /trunk: include/asterisk/channel.h main/channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Aug 13 09:23:39 CDT 2007


Author: russell
Date: Mon Aug 13 09:23:38 2007
New Revision: 79176

URL: http://svn.digium.com/view/asterisk?view=rev&rev=79176
Log:
constify the return value of reason2str

Modified:
    trunk/include/asterisk/channel.h
    trunk/main/channel.c

Modified: trunk/include/asterisk/channel.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/channel.h?view=diff&rev=79176&r1=79175&r2=79176
==============================================================================
--- trunk/include/asterisk/channel.h (original)
+++ trunk/include/asterisk/channel.h Mon Aug 13 09:23:38 2007
@@ -1458,14 +1458,12 @@
  */
 void ast_channel_whisper_stop(struct ast_channel *chan);
 
-
-
 /*!
   \brief return an english explanation of the code returned thru __ast_request_and_dial's 'outstate' argument
   \param reason  The integer argument, usually taken from AST_CONTROL_ macros
   \return char pointer explaining the code
  */
-char *ast_channel_reason2str(int reason);
+const char *ast_channel_reason2str(int reason);
 
 
 #if defined(__cplusplus) || defined(c_plusplus)

Modified: trunk/main/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/main/channel.c?view=diff&rev=79176&r1=79175&r2=79176
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Mon Aug 13 09:23:38 2007
@@ -2919,7 +2919,7 @@
 			  &chan->writetrans, 1);
 }
 
-char *ast_channel_reason2str(int reason)
+const char *ast_channel_reason2str(int reason)
 {
 	switch (reason) /* the following appear to be the only ones actually returned by request_and_dial */
 	{




More information about the asterisk-commits mailing list