summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-04-04 14:53:14 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-04-04 14:53:14 +0000
commitd5c0530d0f69974d16cba24be7c88d16b18e13b2 (patch)
treeb23dbad7db011de0bed840ea560b04dc95e845a4
parentc5123006b1646a06d708190d2740f944a998644a (diff)
Oops
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@341 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-xwcfxs.c2
-rwxr-xr-xwctdm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/wcfxs.c b/wcfxs.c
index 1106bab..e6a1860 100755
--- a/wcfxs.c
+++ b/wcfxs.c
@@ -1175,7 +1175,7 @@ static int wcfxs_ioctl(struct zt_chan *chan, unsigned int cmd, unsigned long dat
if (wc->lasttxhook[chan->chanpos - 1] == 0x1) {
/* Apply the change if appropriate */
wc->lasttxhook[chan->chanpos - 1] = 0x2;
- wcfxs_setreg(wc, x, 64, wc->lasttxhook[chan->chanpos - 1]);
+ wcfxs_setreg(wc, chan->chanpos - 1, 64, wc->lasttxhook[chan->chanpos - 1]);
}
break;
case WCFXS_GET_STATS:
diff --git a/wctdm.c b/wctdm.c
index 1106bab..e6a1860 100755
--- a/wctdm.c
+++ b/wctdm.c
@@ -1175,7 +1175,7 @@ static int wcfxs_ioctl(struct zt_chan *chan, unsigned int cmd, unsigned long dat
if (wc->lasttxhook[chan->chanpos - 1] == 0x1) {
/* Apply the change if appropriate */
wc->lasttxhook[chan->chanpos - 1] = 0x2;
- wcfxs_setreg(wc, x, 64, wc->lasttxhook[chan->chanpos - 1]);
+ wcfxs_setreg(wc, chan->chanpos - 1, 64, wc->lasttxhook[chan->chanpos - 1]);
}
break;
case WCFXS_GET_STATS: