summaryrefslogtreecommitdiff
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-05-01 00:51:38 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-05-01 00:51:38 +0000
commit072e1b8a8359e36c25660f2aac0a85f5b20a99a8 (patch)
tree0d70dbe77d143cfdec7daaa5be9cc2d74afb12be /channels/chan_zap.c
parent7ce2726c09477d75c3305abcc1558d136e359c73 (diff)
move some code used only --with-pri in the proper
conditionally-compiled area. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@23809 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r--channels/chan_zap.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index ee9c25e29..f1a956638 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -941,15 +941,6 @@ static int zt_setlinear(int zfd, int linear)
}
-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)
{
ZT_BUFFERINFO bi;
@@ -8048,6 +8039,15 @@ static void apply_plan_to_number(char *buf, size_t size, const struct zt_pri *pr
}
}
+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)
{
struct zt_pri *pri = vpri;