diff --git a/channels/chan_zap.c b/channels/chan_zap.c index ee9c25e296..f1a956638b 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;