skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

commit bf122baff9ca7069eda6fa22723efe81fa8dbdfb
parent 5935ef75ba99b2c95560f4dccdade2947325b913
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Mon,  2 Nov 2015 21:26:51 +0000

 Remove printing of useless nonvariable option char in sgetopt (thx Michael Zuo)

Diffstat:
Msrc/libstddjb/sgetopt.c | 2--
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git 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 ;