From c62816a00b9aa40879a2ea98da2d10667e09b704 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 14 Aug 2016 15:55:13 -0700 Subject: [PATCH] ao-chaosread: Parse -i and -b options Need to pass the single-byte verisons to getopt_long Signed-off-by: Keith Packard --- ao-tools/ao-chaosread/ao-chaosread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2