[svn-commits] mmichelson: branch 1.4 r133038 - /branches/1.4/channels/chan_dahdi.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jul 23 12:50:02 CDT 2008


Author: mmichelson
Date: Wed Jul 23 12:50:01 2008
New Revision: 133038

URL: http://svn.digium.com/view/asterisk?view=rev&rev=133038
Log:
Small cleanup. Move the declaration of the DAHDI_SPANINFO
variable to the block where it is used. This allows one
less #ifdef HAVE_PRI to clutter things up.

Thanks to Tzafrir for pointing this out on #asterisk-dev


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=133038&r1=133037&r2=133038
==============================================================================
--- branches/1.4/channels/chan_dahdi.c (original)
+++ branches/1.4/channels/chan_dahdi.c Wed Jul 23 12:50:01 2008
@@ -7185,9 +7185,6 @@
 #if 1
 	DAHDI_BUFFERINFO bi;
 #endif
-#ifdef HAVE_PRI
-	DAHDI_SPANINFO si;
-#endif
 	int res;
 	int span=0;
 	int here = 0;
@@ -7290,6 +7287,7 @@
 					destroy_dahdi_pvt(&tmp);
 					return NULL;
 				} else {
+					DAHDI_SPANINFO si;
 					si.spanno = 0;
 					if (ioctl(tmp->subs[SUB_REAL].dfd,DAHDI_SPANSTAT,&si) == -1) {
 						ast_log(LOG_ERROR, "Unable to get span status: %s\n", strerror(errno));




More information about the svn-commits mailing list