]> git.deb.at Git - pkg/abook.git/commitdiff
2nd try to fix a warning2nd try to fix a warning
authorJaakko Heinonen <jheinonen@users.sourceforge.net>
Sun, 10 Mar 2002 20:54:29 +0000 (20:54 +0000)
committerJaakko Heinonen <jheinonen@users.sourceforge.net>
Sun, 10 Mar 2002 20:54:29 +0000 (20:54 +0000)
getopt.c

index ee819c1490852040a61080e6accea52e614e6e03..46da47149da828423e3b28c0a771f6b93838c685 100644 (file)
--- 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);