X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=getopt.c;h=46da47149da828423e3b28c0a771f6b93838c685;hb=4128f78f5543bebc7cd1868736855207019f1f71;hp=ee819c1490852040a61080e6accea52e614e6e03;hpb=e7c54d38271d82a22940c3f149ca67c89437c789;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);