diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-11-02 21:26:51 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-11-04 02:28:35 +0000 |
commit | bf122baff9ca7069eda6fa22723efe81fa8dbdfb (patch) | |
tree | df4bc5d78b799025fecd6c4e739a16a025466410 | |
parent | 5935ef75ba99b2c95560f4dccdade2947325b913 (diff) | |
download | skalibs-bf122baff9ca7069eda6fa22723efe81fa8dbdfb.tar.xz |
Remove printing of useless nonvariable option char in sgetopt (thx Michael Zuo)
-rw-r--r-- | src/libstddjb/sgetopt.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libstddjb/sgetopt.c b/src/libstddjb/sgetopt.c index 7e6bdf6..3f94c93 100644 --- a/src/libstddjb/sgetopt.c +++ b/src/libstddjb/sgetopt.c @@ -16,8 +16,6 @@ int sgetopt_r (int argc, char const *const *argv, char const *opts, subgetopt_t buffer_put(buffer_2, ": ", 2) ; buffer_puts(buffer_2, ((c == '?') && argv[o->ind] && (o->ind < argc)) ? "illegal option" : "option requires an argument") ; - buffer_put(buffer_2, " -- ", 4) ; - buffer_put(buffer_2, &c, 1) ; buffer_putflush(buffer_2, "\n", 1) ; } return (int)c ; |