From dd712b0fec0438734081f29299e8f1cab2e79b4e Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Thu, 7 Feb 2008 04:31:08 +0000 Subject: Fix wrong device name in fxotune.c: /dev/zap/N -> /dev/zap/channelN. Bump PORTREVISION. Submitted by: Patrick Gibson --- misc/zaptel/files/patch-tools::fxotune.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 misc/zaptel/files/patch-tools::fxotune.c (limited to 'misc/zaptel/files/patch-tools::fxotune.c') 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) { -- cgit v1.2.3