summaryrefslogtreecommitdiff
path: root/ao-tools/ao-dumplog
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-08-23 21:53:37 -0700
committerKeith Packard <keithp@keithp.com>2010-08-23 21:53:37 -0700
commitb8519b8669ff54741dd738ac343fbd2424451247 (patch)
treed8a0bd4efc22c7c61261920cc1dedc1639a5c874 /ao-tools/ao-dumplog
parentebeb13688a9a5442c838641ede6ba0dc92c9a1a4 (diff)
ao-dumplog: Fix --remote and --channel options to actually work
Diffstat (limited to 'ao-tools/ao-dumplog')
-rw-r--r--ao-tools/ao-dumplog/ao-dumplog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ao-tools/ao-dumplog/ao-dumplog.c b/ao-tools/ao-dumplog/ao-dumplog.c
index 57c43290..6d4fa5bf 100644
--- a/ao-tools/ao-dumplog/ao-dumplog.c
+++ b/ao-tools/ao-dumplog/ao-dumplog.c
@@ -29,7 +29,7 @@
static const struct option options[] = {
{ .name = "tty", .has_arg = 1, .val = 'T' },
{ .name = "device", .has_arg = 1, .val = 'D' },
- { .name = "remote", .has_arg = 1, .val = 'R' },
+ { .name = "remote", .has_arg = 0, .val = 'R' },
{ .name = "channel", .has_arg = 1, .val = 'C' },
{ 0, 0, 0, 0},
};
@@ -91,7 +91,7 @@ main (int argc, char **argv)
int invalid;
char serial_line[8192];
- while ((c = getopt_long(argc, argv, "T:D:R", options, NULL)) != -1) {
+ while ((c = getopt_long(argc, argv, "T:D:C:R", options, NULL)) != -1) {
switch (c) {
case 'T':
tty = optarg;