Fix compilation warnings (found with dev-mode)
authorTilghman Lesher <tilghman@meg.abyt.es>
Sat, 16 Aug 2008 13:07:08 +0000 (13:07 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Sat, 16 Aug 2008 13:07:08 +0000 (13:07 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@138412 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_dahdi.c

index 07e2212..181a875 100644 (file)
@@ -12000,8 +12000,10 @@ retry:
 static int setup_dahdi(int reload);
 static int dahdi_restart(void)
 {
-
-       int i, j, cancel_code;
+#if defined(HAVE_PRI)
+       int i, j;
+#endif
+       int cancel_code;
        struct dahdi_pvt *p;
 
        ast_mutex_lock(&restart_lock);