[Asterisk-cvs] asterisk/channels chan_zap.c,1.407,1.408

markster at lists.digium.com markster at lists.digium.com
Thu Feb 10 11:39:58 CST 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv32668/channels

Modified Files:
	chan_zap.c 
Log Message:
Fix zap build for gcc 2.95


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.407
retrieving revision 1.408
diff -u -d -r1.407 -r1.408
--- chan_zap.c	8 Feb 2005 07:49:40 -0000	1.407
+++ chan_zap.c	10 Feb 2005 17:40:06 -0000	1.408
@@ -7933,6 +7933,7 @@
 							c = zt_new(pri->pvts[chanpos], AST_STATE_RING, 1, SUB_REAL, law, e->ring.ctype);
 							ast_mutex_lock(&pri->lock);
 							if (c) {
+								char calledtonstr[10];
 								if(e->ring.ani2 >= 0) {
 									snprintf(ani2str, 5, "%d", e->ring.ani2);
 									pbx_builtin_setvar_helper(c, "ANI2", ani2str);
@@ -7940,7 +7941,6 @@
 								if (!ast_strlen_zero(e->ring.useruserinfo)) {
 									pbx_builtin_setvar_helper(c, "USERUSERINFO", e->ring.useruserinfo);
 								}
-								char calledtonstr[10];
 								snprintf(calledtonstr, sizeof(calledtonstr)-1, "%d", e->ring.calledplan);
 								pbx_builtin_setvar_helper(c, "CALLEDTON", calledtonstr);
 								if (option_verbose > 2)




More information about the svn-commits mailing list