summaryrefslogtreecommitdiff
path: root/misc/zaptel/files/patch-tools::fxotune.c
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2008-02-07 04:31:08 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2008-02-07 04:31:08 +0000
commitdd712b0fec0438734081f29299e8f1cab2e79b4e (patch)
tree0242b255350094802f0661a6c2af316a408bed4a /misc/zaptel/files/patch-tools::fxotune.c
parent- Update to 1.5.2 (diff)
Fix wrong device name in fxotune.c: /dev/zap/N ->
/dev/zap/channelN. Bump PORTREVISION. Submitted by: Patrick Gibson <patrick@patrickg.com>
Notes
Notes: svn path=/head/; revision=206803
Diffstat (limited to 'misc/zaptel/files/patch-tools::fxotune.c')
-rw-r--r--misc/zaptel/files/patch-tools::fxotune.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/misc/zaptel/files/patch-tools::fxotune.c b/misc/zaptel/files/patch-tools::fxotune.c
new file mode 100644
index 000000000000..68de19e824d7
--- /dev/null
+++ b/misc/zaptel/files/patch-tools::fxotune.c
@@ -0,0 +1,20 @@
+--- tools/fxotune.c.orig Thu Jan 4 02:13:23 2007
++++ tools/fxotune.c Wed Feb 6 11:43:10 2008
+@@ -320,7 +320,7 @@
+ mycoefs.coef7 = mycoef7;
+ mycoefs.coef8 = mycoef8;
+
+- snprintf(completezappath, sizeof(completezappath), "%s/%d", zappath, myzap);
++ snprintf(completezappath, sizeof(completezappath), "%s/channel%d", zappath, myzap);
+ fd = open(completezappath, O_RDWR);
+
+ if (fd < 0) {
+@@ -356,7 +356,7 @@
+ }
+
+ for (i = 0; i < 252; i++) {
+- snprintf(zapdev, sizeof(zapdev), "%s/%d", zappath, i+1);
++ snprintf(zapdev, sizeof(zapdev), "%s/channel%d", zappath, i+1);
+
+ fd = open(zapdev, O_RDWR);
+ if (fd < 0) {