diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-04 15:28:48 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-04 15:28:48 +0000 |
commit | b7bb984340e80b21e5d8042e7c0518e02bb531af (patch) | |
tree | a4a4b84528b12b7eae8a3c9e8497fa40c98fe6b7 | |
parent | 18c7099e31c5c72b3e8e87ab133d0bb4d4690525 (diff) |
clean up some compiler warnings
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7327 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_zap.c | 6 |
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); |