aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-09 08:16:07 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-09 08:16:07 +0000
commit8758cc1de5b5e79e2759499c44bb9c2870e78322 (patch)
tree659529a2b5596a4820bf6a322bb90f13ae19c2ff /pbx.c
parent072439e2e2c89b58f1603d1c1936f6190c412fcf (diff)
misc fixups
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25925 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rw-r--r--pbx.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/pbx.c b/pbx.c
index 0c5a67dff..2821a9bbd 100644
--- a/pbx.c
+++ b/pbx.c
@@ -2995,7 +2995,7 @@ static void print_ext(struct ast_exten *e, char * buf, int buflen)
}
/* XXX not verified */
-static int show_dialplan_helper(int fd, const char *context, const char *exten, struct dialplan_counters *dpc, struct ast_include *rinclude, int includecount, char *includes[])
+static int show_dialplan_helper(int fd, const char *context, const char *exten, struct dialplan_counters *dpc, struct ast_include *rinclude, int includecount, const char *includes[])
{
struct ast_context *c = NULL;
int res = 0, old_total_exten = dpc->total_exten;
@@ -3097,7 +3097,7 @@ static int show_dialplan_helper(int fd, const char *context, const char *exten,
}
}
if (!dupe) {
- includes[includecount] = (char *)ast_get_include_name(i);
+ includes[includecount] = ast_get_include_name(i);
show_dialplan_helper(fd, ast_get_include_name(i), exten, dpc, i, includecount + 1, includes);
} else {
ast_log(LOG_WARNING, "Avoiding circular include of %s within %s\n", ast_get_include_name(i), context);
@@ -3149,7 +3149,7 @@ static int handle_show_dialplan(int fd, int argc, char *argv[])
/* Variables used for different counters */
struct dialplan_counters counters;
- char *incstack[AST_PBX_MAX_STACK];
+ const char *incstack[AST_PBX_MAX_STACK];
memset(&counters, 0, sizeof(counters));
if (argc != 2 && argc != 3)
@@ -5038,8 +5038,8 @@ static int pbx_builtin_waitexten(struct ast_channel *chan, void *data)
ast_moh_start(chan, opts[0]);
/* Wait for "n" seconds */
- if (args.timeout && atof((char *)args.timeout))
- ms = atof((char *)args.timeout) * 1000;
+ if (args.timeout && atof(args.timeout))
+ ms = atof(args.timeout) * 1000;
else if (chan->pbx)
ms = chan->pbx->rtimeout * 1000;
else
@@ -5089,7 +5089,7 @@ static int pbx_builtin_background(struct ast_channel *chan, void *data)
AST_STANDARD_APP_ARGS(args, parse);
if (!args.lang)
- args.lang = (char *) chan->language;
+ args.lang = (char *)chan->language; /* XXX this is const */
if (!args.context)
args.context = chan->context;