diff options
author | Joshua Colp <jcolp@digium.com> | 2007-08-17 01:19:04 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2007-08-17 01:19:04 +0000 |
commit | ecff1370fbe38dddbc4ca7a0a7c1d636c75dc04b (patch) | |
tree | b991dd1e427c3fca330653354e339238a60118eb /channels/chan_zap.c | |
parent | d6eb859bc2a62ef3ea4fa40f4e17ff05926ff604 (diff) |
Fix building of chan_zap under development mode without libpri and libss7 installed.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79824 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r-- | channels/chan_zap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index d4feae885..250099d18 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -12628,7 +12628,7 @@ static int setup_zap(int reload) 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 @@ static int setup_zap(int reload) } #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 @@ static int setup_zap(int reload) #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])) { |