projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
af1d41e
)
ao-chaosread: Parse -i and -b options
author
Keith Packard
<keithp@keithp.com>
Sun, 14 Aug 2016 22:55:13 +0000
(15:55 -0700)
committer
Keith Packard
<keithp@keithp.com>
Sun, 14 Aug 2016 22:55:13 +0000
(15:55 -0700)
Need to pass the single-byte verisons to getopt_long
Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools/ao-chaosread/ao-chaosread.c
patch
|
blob
|
history
diff --git
a/ao-tools/ao-chaosread/ao-chaosread.c
b/ao-tools/ao-chaosread/ao-chaosread.c
index 82831201c1b3ffe1e7c1ddf87470f8cb1b6dd80b..7808f6c91d5cdad2689219951ac117ff96bc6392 100644
(file)
--- 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;
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;
switch (c) {
case 's':
serial = optarg;