diff options
| author | Keith Packard <keithp@keithp.com> | 2016-08-31 21:27:10 -0600 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2016-08-31 21:27:10 -0600 | 
| commit | b2d013aef5b76ff527e8174dff7f6ffe0dfaefae (patch) | |
| tree | e23e83798ed51816f7a434baaef423293f87eedd | |
| parent | 08923aa0cf31ae7bd73b66b4d1cd81fae4241ff0 (diff) | |
ao-tools/ao-cal-freq: --verbose option has no parameter
Signed-off-by: Keith Packard <keithp@keithp.com>
| -rw-r--r-- | ao-tools/ao-cal-freq/ao-cal-freq.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/ao-tools/ao-cal-freq/ao-cal-freq.c b/ao-tools/ao-cal-freq/ao-cal-freq.c index 33fe52fa..c2982684 100644 --- a/ao-tools/ao-cal-freq/ao-cal-freq.c +++ b/ao-tools/ao-cal-freq/ao-cal-freq.c @@ -39,13 +39,13 @@ static const struct option options[] = {  	{ .name = "tty", .has_arg = 1, .val = 'T' },  	{ .name = "device", .has_arg = 1, .val = 'D' },  	{ .name = "raw", .has_arg = 0, .val = 'r' }, -	{ .name = "verbose", .has_arg = 1, .val = 'v' }, +	{ .name = "verbose", .has_arg = 0, .val = 'v' },  	{ 0, 0, 0, 0},  };  static void usage(char *program)  { -	fprintf(stderr, "usage: %s [--verbose=<verbose>] [--device=<device>] [-tty=<tty>]\n", program); +	fprintf(stderr, "usage: %s [--verbose] [--device=<device>] [-tty=<tty>]\n", program);  	exit(1);  } @@ -239,7 +239,7 @@ main (int argc, char **argv)  	int			ret = 0;  	int			expected_size; -	while ((c = getopt_long(argc, argv, "rT:D:c:s:v:", options, NULL)) != -1) { +	while ((c = getopt_long(argc, argv, "vrT:D:c:s:", options, NULL)) != -1) {  		switch (c) {  		case 'T':  			tty = optarg; | 
