From 5f0c3e7dbc3cfa88dbc24b153c24057ca306b30a Mon Sep 17 00:00:00 2001 From: Russell Bryant <russell@russellbryant.com> Date: Mon, 13 Aug 2007 14:23:38 +0000 Subject: [PATCH] constify the return value of reason2str git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79176 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/channel.h | 4 +--- main/channel.c | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 1a334411a9..b24b25c795 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -1458,14 +1458,12 @@ int ast_channel_whisper_feed(struct ast_channel *chan, struct ast_frame *f); */ 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) diff --git a/main/channel.c b/main/channel.c index cd2202fd42..51b5da9b3e 100644 --- a/main/channel.c +++ b/main/channel.c @@ -2919,7 +2919,7 @@ int ast_set_write_format(struct ast_channel *chan, int fmt) &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 */ { -- GitLab