aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_iax2.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-20 20:40:39 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-20 20:40:39 +0000
commite8ef9fd3bafa2149743dbc054fee547b432be5a7 (patch)
treecfe98d62cefd297076949dd1e36255cd7e2c3b9a /channels/chan_iax2.c
parent9a47f6702095e34ea993fdbebe7e7a7736b8d5f1 (diff)
Constify the result of a config retrieval function, to avoid mutilation (issue 7983).
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43364 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_iax2.c')
-rw-r--r--channels/chan_iax2.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index 1fa4c8784..65722a83d 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -8796,8 +8796,8 @@ static int set_config(char *config_file, int reload)
int capability=iax2_capability;
struct ast_variable *v;
char *cat;
- char *utype;
- char *tosval;
+ const char *utype;
+ const char *tosval;
int format;
int portno = IAX_DEFAULT_PORTNO;
int x;
@@ -9051,7 +9051,7 @@ static int set_config(char *config_file, int reload)
struct ast_variable *gen;
int genhasiax;
int genregisteriax;
- char *hasiax, *registeriax;
+ const char *hasiax, *registeriax;
genhasiax = ast_true(ast_variable_retrieve(ucfg, "general", "hasiax"));
genregisteriax = ast_true(ast_variable_retrieve(ucfg, "general", "registeriax"));
@@ -9080,9 +9080,9 @@ static int set_config(char *config_file, int reload)
}
if (ast_true(registeriax) || (!registeriax && genregisteriax)) {
char tmp[256];
- char *host = ast_variable_retrieve(ucfg, cat, "host");
- char *username = ast_variable_retrieve(ucfg, cat, "username");
- char *secret = ast_variable_retrieve(ucfg, cat, "secret");
+ const char *host = ast_variable_retrieve(ucfg, cat, "host");
+ const char *username = ast_variable_retrieve(ucfg, cat, "username");
+ const char *secret = ast_variable_retrieve(ucfg, cat, "secret");
if (!host)
host = ast_variable_retrieve(ucfg, "general", "host");
if (!username)