[asterisk-commits] file: trunk r79824 - /trunk/channels/chan_zap.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Aug 16 20:19:05 CDT 2007


Author: file
Date: Thu Aug 16 20:19:04 2007
New Revision: 79824

URL: http://svn.digium.com/view/asterisk?view=rev&rev=79824
Log:
Fix building of chan_zap under development mode without libpri and libss7 installed.

Modified:
    trunk/channels/chan_zap.c

Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?view=diff&rev=79824&r1=79823&r2=79824
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Thu Aug 16 20:19:04 2007
@@ -12628,7 +12628,7 @@
  	struct zt_chan_conf base_conf = zt_chan_conf_default();
  	struct zt_chan_conf conf;
 	struct ast_flags config_flags = { reload ? CONFIG_FLAG_FILEUNCHANGED : 0 };
-	int res, x;
+	int res;
 
 #ifdef HAVE_PRI
 	char *c;
@@ -12749,6 +12749,7 @@
 	}
 #ifdef HAVE_PRI
 	if (!reload) {
+		int x;
 		for (x = 0; x < NUM_SPANS; x++) {
 			if (pris[x].pvts[0]) {
 				if (start_pri(pris + x)) {
@@ -12762,6 +12763,7 @@
 #endif
 #ifdef HAVE_SS7
 	if (!reload) {
+		int x;
 		for (x = 0; x < NUM_SPANS; x++) {
 			if (linksets[x].ss7) {
 				if (ast_pthread_create(&linksets[x].master, NULL, ss7_linkset, &linksets[x])) {




More information about the asterisk-commits mailing list