[Asterisk-cvs] zaptel fxotune.c,1.25,1.26
mattf
mattf
Wed Sep 14 15:58:13 CDT 2005
Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv4958
Modified Files:
fxotune.c
Log Message:
Enable the fxotune.vals output only if debug is set
Index: fxotune.c
===================================================================
RCS file: /usr/cvsroot/zaptel/fxotune.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- fxotune.c 14 Sep 2005 19:52:52 -0000 1.25
+++ fxotune.c 14 Sep 2005 19:56:43 -0000 1.26
@@ -303,10 +303,12 @@
float acim_results[16];
- outfile = fopen("/tmp/fxotune.vals", "w");
- if (!outfile) {
- fprintf(stdout, "Cannot create /tmp/fxotune.vals\n");
- return -1;
+ if (debug) {
+ outfile = fopen("/tmp/fxotune.vals", "w");
+ if (!outfile) {
+ fprintf(stdout, "Cannot create /tmp/fxotune.vals\n");
+ return -1;
+ }
}
/* Set echo settings */
More information about the svn-commits
mailing list