diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-20 20:40:39 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-20 20:40:39 +0000 |
commit | e8ef9fd3bafa2149743dbc054fee547b432be5a7 (patch) | |
tree | cfe98d62cefd297076949dd1e36255cd7e2c3b9a /channels/iax2-provision.c | |
parent | 9a47f6702095e34ea993fdbebe7e7a7736b8d5f1 (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/iax2-provision.c')
-rw-r--r-- | channels/iax2-provision.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/iax2-provision.c b/channels/iax2-provision.c index 229c64043..8febd5608 100644 --- a/channels/iax2-provision.c +++ b/channels/iax2-provision.c @@ -259,7 +259,7 @@ int iax_provision_version(unsigned int *version, const char *template, int force return ret; } -static int iax_template_parse(struct iax_template *cur, struct ast_config *cfg, char *s, char *def) +static int iax_template_parse(struct iax_template *cur, struct ast_config *cfg, const char *s, const char *def) { struct ast_variable *v; int foundportno = 0; @@ -269,7 +269,7 @@ static int iax_template_parse(struct iax_template *cur, struct ast_config *cfg, struct hostent *hp; struct ast_hostent h; struct iax_template *src, tmp; - char *t; + const char *t; if (def) { t = ast_variable_retrieve(cfg, s ,"template"); src = NULL; |