Fix compile warning in chan_zap if libpri not installed
authorJames Golovich <james@gnuinter.net>
Sat, 17 Apr 2004 23:48:19 +0000 (23:48 +0000)
committerJames Golovich <james@gnuinter.net>
Sat, 17 Apr 2004 23:48:19 +0000 (23:48 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2704 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index d97748f..241908d 100755 (executable)
@@ -7334,9 +7334,9 @@ static int action_zapdialoffhook(struct mansession *s, struct message *m)
 static int __unload_module(void)
 {
        int x = 0;
-       int i;
        struct zt_pvt *p, *pl;
 #ifdef ZAPATA_PRI
+       int i;
        for(i=0;i<NUM_SPANS;i++) {
                pthread_cancel(pris[i].master);
        }