diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-03 19:25:33 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-03 19:25:33 +0000 |
commit | 3365b1cc9fd629381e341c2291fc0cfb53a44c36 (patch) | |
tree | f1b09ce6fd8d356c12bfe4e6b4e24e8f97ef1154 /funcs/func_groupcount.c | |
parent | a3c74f33dd6c999b8db1cd4281784753ebca997d (diff) |
Bug 5858 - Make the chanvars.c functions return a 'const char *'
This should prevent us from unintentionally changing variable
values when they're returned from pbx_builtin_getvar_helper.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7304 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs/func_groupcount.c')
-rw-r--r-- | funcs/func_groupcount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/funcs/func_groupcount.c b/funcs/func_groupcount.c index 0f07d8327..bf389a61d 100644 --- a/funcs/func_groupcount.c +++ b/funcs/func_groupcount.c @@ -40,7 +40,7 @@ static char *group_count_function_read(struct ast_channel *chan, char *cmd, char int count; char group[80] = ""; char category[80] = ""; - char *grp; + const char *grp; ast_app_group_split_group(data, group, sizeof(group), category, sizeof(category)); @@ -101,7 +101,7 @@ struct ast_custom_function group_match_count_function = { static char *group_function_read(struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len) { char varname[256]; - char *group; + const char *group; if (!ast_strlen_zero(data)) { snprintf(varname, sizeof(varname), "%s_%s", GROUP_CATEGORY_PREFIX, data); |