[asterisk-commits] trunk - r7327 /trunk/channels/chan_zap.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Dec 4 09:28:56 CST 2005


Author: russell
Date: Sun Dec  4 09:28:48 2005
New Revision: 7327

URL: http://svn.digium.com/view/asterisk?rev=7327&view=rev
Log:
clean up some compiler warnings

Modified:
    trunk/channels/chan_zap.c

Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?rev=7327&r1=7326&r2=7327&view=diff
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Sun Dec  4 09:28:48 2005
@@ -2004,7 +2004,7 @@
 #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 @@
 		/* 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 @@
 						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);



More information about the asterisk-commits mailing list