summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2005-12-04 15:28:48 +0000
committerRussell Bryant <russell@russellbryant.com>2005-12-04 15:28:48 +0000
commit0ff48b46813052d053e56ffa4310d621623067c7 (patch)
treea4a4b84528b12b7eae8a3c9e8497fa40c98fe6b7 /channels
parent8af65a8a25b63a824a5554e82491ee3aa21b67a8 (diff)
clean up some compiler warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_zap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 3b8b9b81b..16644eae3 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -2004,7 +2004,7 @@ static int zt_call(struct ast_channel *ast, char *rdest, int timeout)
#ifdef ZAPATA_PRI
if (p->pri) {
struct pri_sr *sr;
- char *useruser;
+ const char *useruser;
int pridialplan;
int dp_strip;
int prilocaldialplan;
@@ -2510,7 +2510,7 @@ static int zt_hangup(struct ast_channel *ast)
/* Perform low level hangup if no owner left */
#ifdef ZAPATA_PRI
if (p->pri) {
- char *useruser = pbx_builtin_getvar_helper(ast,"USERUSERINFO");
+ const char *useruser = pbx_builtin_getvar_helper(ast,"USERUSERINFO");
/* Make sure we have a call (or REALLY have a call in the case of a PRI) */
if (p->call && (!p->bearer || (p->bearer->call == p->call))) {
if (!pri_grab(p, p->pri)) {
@@ -2522,7 +2522,7 @@ static int zt_hangup(struct ast_channel *ast)
if (p->bearer)
p->bearer->call = NULL;
} else {
- char *cause = pbx_builtin_getvar_helper(ast,"PRI_CAUSE");
+ const char *cause = pbx_builtin_getvar_helper(ast,"PRI_CAUSE");
int icause = ast->hangupcause ? ast->hangupcause : -1;
ast_log(LOG_DEBUG, "Not yet hungup... Calling hangup once with icause, and clearing call\n");
pri_call_set_useruser(p->call, useruser);