From: Jaakko Heinonen Date: Sun, 10 Mar 2002 20:54:29 +0000 (+0000) Subject: 2nd try to fix a warning2nd try to fix a warning X-Git-Tag: upstream/0.6.1~2^2~290 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=e8627e2a5127283fb5930c942dbf921d3f8b73fc;p=pkg%2Fabook.git 2nd try to fix a warning2nd try to fix a warning --- 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);