[asterisk-commits] jpeeler: branch 1.4 r140115 - /branches/1.4/channels/chan_dahdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Aug 26 11:49:58 CDT 2008


Author: jpeeler
Date: Tue Aug 26 11:49:57 2008
New Revision: 140115

URL: http://svn.digium.com/view/asterisk?view=rev&rev=140115
Log:
add HAVE_PRI if define around dahdi_close_pri_fd

Modified:
    branches/1.4/channels/chan_dahdi.c

Modified: branches/1.4/channels/chan_dahdi.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_dahdi.c?view=diff&rev=140115&r1=140114&r2=140115
==============================================================================
--- branches/1.4/channels/chan_dahdi.c (original)
+++ branches/1.4/channels/chan_dahdi.c Tue Aug 26 11:49:57 2008
@@ -957,12 +957,14 @@
 	dahdi_close(chan_pvt->subs[sub_num].dfd);
 	chan_pvt->subs[sub_num].dfd = -1;
 }
-
+ 
+#ifdef HAVE_PRI
 static void dahdi_close_pri_fd(struct dahdi_pri *pri, int fd_num)
 {
 	dahdi_close(pri->fds[fd_num]);
 	pri->fds[fd_num] = -1;
 }
+#endif
 
 static int dahdi_setlinear(int dfd, int linear)
 {




More information about the asterisk-commits mailing list