ref: 8034d6e780d124018e60dc54ec4a64b2ba40c87e
parent: e2647d2fdda0e2ec4dd4d9e41b312c030db49405
author: robs <robs>
date: Mon Jun 25 14:20:26 EDT 2007
Fix silly mistake
--- a/src/sox.c
+++ b/src/sox.c
@@ -160,9 +160,9 @@
static void report_file_info(file_t f);
-static void display_SoX_version(void)
+static void display_SoX_version(FILE * file)
{
- printf("%s: SoX v%s\n", myname, PACKAGE_VERSION);
+ fprintf(file, "%s: SoX v%s\n", myname, PACKAGE_VERSION);
}
static int strcmp_p(const void *p1, const void *p2)
@@ -262,7 +262,7 @@
"-v, --volume FACTOR volume input file volume adjustment factor (real number)",
""};
- display_SoX_version();
+ display_SoX_version(stdout);
putchar('\n');
if (message)
@@ -282,7 +282,7 @@
{
int i;
- display_SoX_version();
+ display_SoX_version(stdout);
putchar('\n');
if (strcmp("all", name) && !sox_find_effect(name)) {
@@ -678,7 +678,7 @@
parse_options_and_filenames(argc, argv);
if (sox_globals.verbosity > 2)
- display_SoX_version();
+ display_SoX_version(stderr);
/* Load plugins (after options so we can output debugging messages
if desired) */
@@ -969,7 +969,7 @@
break;
case 9:
- display_SoX_version();
+ display_SoX_version(stdout);
exit(0);
break;
}