From: Keith Packard Date: Sun, 14 Aug 2016 22:55:13 +0000 (-0700) Subject: ao-chaosread: Parse -i and -b options X-Git-Tag: 1.6.8~1^2~18 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=c62816a00b9aa40879a2ea98da2d10667e09b704;hp=af1d41e32fc04d5897fd2dc736391d263af48727 ao-chaosread: Parse -i and -b options Need to pass the single-byte verisons to getopt_long Signed-off-by: Keith Packard --- 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;