ref: 56f4404f4adda37780748c989ce271ffccd78086
parent: 2dd8e848393dff0a4be2f4b54e242995f036c7d7
author: robs <robs>
date: Sun Jun 17 17:12:47 EDT 2007
Fix usage
--- a/src/mixer.c
+++ b/src/mixer.c
@@ -560,10 +560,10 @@
return &handler;
}
-static int oops_getopts(sox_effect_t * effp, int n, char * * argv)
+static int oops_getopts(sox_effect_t * effp, int argc, char * * argv UNUSED)
{
char * args[] = {"1,1,-1,-1"};
- return sox_mixer_effect_fn()->getopts(effp, array_length(args), args);
+ return argc? sox_usage(effp) : sox_mixer_effect_fn()->getopts(effp, array_length(args), args);
}
sox_effect_handler_t const * sox_oops_effect_fn(void)