summaryrefslogtreecommitdiff
path: root/src/libstddjb/sgetopt.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-11-02 21:26:51 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-11-04 02:28:35 +0000
commitbf122baff9ca7069eda6fa22723efe81fa8dbdfb (patch)
treedf4bc5d78b799025fecd6c4e739a16a025466410 /src/libstddjb/sgetopt.c
parent5935ef75ba99b2c95560f4dccdade2947325b913 (diff)
downloadskalibs-bf122baff9ca7069eda6fa22723efe81fa8dbdfb.tar.xz
Remove printing of useless nonvariable option char in sgetopt (thx Michael Zuo)
Diffstat (limited to 'src/libstddjb/sgetopt.c')
-rw-r--r--src/libstddjb/sgetopt.c2
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 ;