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 /apps/app_directory.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 'apps/app_directory.c')
-rw-r--r-- | apps/app_directory.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/apps/app_directory.c b/apps/app_directory.c index 8e893b54b..14d5dd61a 100644 --- a/apps/app_directory.c +++ b/apps/app_directory.c @@ -183,7 +183,7 @@ static void retrieve_file(char *dir) } #endif -static char *convert(char *lastname) +static char *convert(const char *lastname) { char *tmp; int lcount = 0; @@ -342,8 +342,8 @@ static struct ast_config *realtime_directory(char *context) struct ast_category *cat; struct ast_variable *var; char *mailbox; - char *fullname; - char *hidefromdir; + const char *fullname; + const char *hidefromdir; char tmp[100]; /* Load flat file config. */ @@ -402,7 +402,8 @@ static int do_directory(struct ast_channel *chan, struct ast_config *cfg, struct int res; int found=0; int lastuserchoice = 0; - char *start, *pos, *conv,*stringp=NULL; + char *start, *conv, *stringp = NULL; + const char *pos; if (ast_strlen_zero(context)) { ast_log(LOG_WARNING, @@ -570,7 +571,8 @@ static int directory_exec(struct ast_channel *chan, void *data) int last = 1; int readext = 0; int fromappvm = 0; - char *dirintro, *parse; + const char *dirintro; + char *parse; AST_DECLARE_APP_ARGS(args, AST_APP_ARG(vmcontext); AST_APP_ARG(dialcontext); |