From bf122baff9ca7069eda6fa22723efe81fa8dbdfb Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 2 Nov 2015 21:26:51 +0000 Subject: Remove printing of useless nonvariable option char in sgetopt (thx Michael Zuo) --- src/libstddjb/sgetopt.c | 2 -- 1 file changed, 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 ; -- cgit v1.2.3