[asterisk-commits] trunk r23809 - /trunk/channels/chan_zap.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Apr 30 17:51:39 MST 2006


Author: rizzo
Date: Sun Apr 30 19:51:38 2006
New Revision: 23809

URL: http://svn.digium.com/view/asterisk?rev=23809&view=rev
Log:
move some code used only --with-pri in the proper
conditionally-compiled area.


Modified:
    trunk/channels/chan_zap.c

Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?rev=23809&r1=23808&r2=23809&view=diff
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Sun Apr 30 19:51:38 2006
@@ -940,15 +940,6 @@
 	return 0;
 }
 
-
-static int zt_setlaw(int zfd, int law)
-{
-	int res;
-	res = ioctl(zfd, ZT_SETLAW, &law);
-	if (res)
-		return res;
-	return 0;
-}
 
 static int alloc_sub(struct zt_pvt *p, int x)
 {
@@ -8046,6 +8037,15 @@
 		snprintf(buf, size, "%s", number);
 		break;
 	}
+}
+
+static int zt_setlaw(int zfd, int law)
+{
+	int res;
+	res = ioctl(zfd, ZT_SETLAW, &law);
+	if (res)
+		return res;
+	return 0;
 }
 
 static void *pri_dchannel(void *vpri)



More information about the asterisk-commits mailing list