aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-20 21:42:45 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-20 21:42:45 +0000
commit437366146dafe222b42be7c972889690ac92fd4c (patch)
treef09a99aa4e8c95237d582d432673db29885f2927 /channels/chan_zap.c
parent86113059df5eb2b0b5df0f066aa9f8078385aaa5 (diff)
Fix some chan_zap warning messages, when HAVE_PRI is not defined.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43374 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r--channels/chan_zap.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index eb82720ca..f39e25b4e 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -10325,11 +10325,11 @@ static int unload_module(void)
static int build_channels(int iscrv, const char *value, int reload, int lineno, int *found_pseudo)
{
char *c, *chan;
- int x, y, start, finish;
+ int x, start, finish;
struct zt_pvt *tmp;
#ifdef HAVE_PRI
struct zt_pri *pri;
- int trunkgroup;
+ int trunkgroup, y;
#endif
if ((reload == 0) && (cur_signalling < 0)) {
@@ -10418,7 +10418,6 @@ static int process_zap(struct ast_variable *v, int reload, int skipchannels)
char *ringc;
int y;
int found_pseudo = 0;
- char *c;
while(v) {
/* Create the interface list */
@@ -10883,7 +10882,7 @@ static int process_zap(struct ast_variable *v, int reload, int skipchannels)
overlapdial = ast_true(v->value);
} else if (!strcasecmp(v->name, "pritimer")) {
#ifdef PRI_GETSET_TIMERS
- char *timerc;
+ char *timerc, *c;
int timer, timeridx;
c = v->value;
timerc = strsep(&c, ",");
@@ -11063,16 +11062,15 @@ static int process_zap(struct ast_variable *v, int reload, int skipchannels)
static int setup_zap(int reload)
{
- int x;
struct ast_config *cfg;
struct ast_variable *v;
struct ast_variable *vjb;
- char *c;
int res;
#ifdef HAVE_PRI
+ char *c;
int spanno;
- int i;
+ int i, x;
int logicalspan;
int trunkgroup;
int dchannels[NUM_DCHANS];