aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
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 /pbx
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 'pbx')
-rw-r--r--pbx/pbx_config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c
index 801438ffd..f49b14467 100644
--- a/pbx/pbx_config.c
+++ b/pbx/pbx_config.c
@@ -2171,7 +2171,7 @@ static int pbx_load_config(const char *config_file)
int lastpri = -2;
struct ast_context *con;
struct ast_variable *v;
- char *cxt;
+ const char *cxt;
cfg = ast_config_load(config_file);
if (!cfg)
@@ -2340,8 +2340,8 @@ static void pbx_load_users(void)
{
struct ast_config *cfg;
char *cat, *chan;
- char *zapchan;
- char *hasexten;
+ const char *zapchan;
+ const char *hasexten;
char tmp[256];
char iface[256];
char zapcopy[256];