X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=getopt.c;h=46da47149da828423e3b28c0a771f6b93838c685;hb=e8627e2a5127283fb5930c942dbf921d3f8b73fc;hp=ee819c1490852040a61080e6accea52e614e6e03;hpb=1a2b8c7380b47ce85f10c035bedcc04b1766ce3e;p=pkg%2Fabook.git diff --git a/getopt.c b/getopt.c index ee819c1..46da471 100644 --- a/getopt.c +++ b/getopt.c @@ -651,18 +651,18 @@ int else { if (opterr) + { if (argv[optind - 1][1] == '-') /* --option */ fprintf(stderr, _("%s: option `--%s' doesn't allow an argument\n"), argv[0], pfound->name); else - { /* +option or -option */ fprintf(stderr, _("%s: option `%c%s' doesn't allow an argument\n"), argv[0], argv[optind - 1][0], pfound->name); - } + } nextchar += strlen(nextchar);