diff options
author | Keith Packard <keithp@keithp.com> | 2016-08-14 15:55:13 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2016-08-14 15:55:13 -0700 |
commit | c62816a00b9aa40879a2ea98da2d10667e09b704 (patch) | |
tree | 360fd376c21f6a9c6e9bca4c024c0f48f38f54c0 /ao-tools/ao-chaosread | |
parent | af1d41e32fc04d5897fd2dc736391d263af48727 (diff) |
ao-chaosread: Parse -i and -b options
Need to pass the single-byte verisons to getopt_long
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/ao-chaosread')
-rw-r--r-- | ao-tools/ao-chaosread/ao-chaosread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ao-tools/ao-chaosread/ao-chaosread.c b/ao-tools/ao-chaosread/ao-chaosread.c index 82831201..7808f6c9 100644 --- a/ao-tools/ao-chaosread/ao-chaosread.c +++ b/ao-tools/ao-chaosread/ao-chaosread.c @@ -234,7 +234,7 @@ main (int argc, char **argv) int infinite = 0; int bytes = 0; - while ((c = getopt_long(argc, argv, "s:l:", options, NULL)) != -1) { + while ((c = getopt_long(argc, argv, "s:l:ib", options, NULL)) != -1) { switch (c) { case 's': serial = optarg; |