summaryrefslogtreecommitdiff
path: root/funcs/func_groupcount.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2005-12-03 19:25:33 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2005-12-03 19:25:33 +0000
commit870f98f02de56e35b87f511544a6cda3d4d8fe69 (patch)
treef1b09ce6fd8d356c12bfe4e6b4e24e8f97ef1154 /funcs/func_groupcount.c
parent6a6b88c0e33e0e60dbf8039d24d2e8815d194cae (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: https://origsvn.digium.com/svn/asterisk/trunk@7304 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs/func_groupcount.c')
-rw-r--r--funcs/func_groupcount.c4
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);