]> git.deb.at Git - pkg/abook.git/blobdiff - getopt.c
2nd try to fix a warning2nd try to fix a warning
[pkg/abook.git] / getopt.c
index 0f41fb692366816f1ac535b714c75cbca4ff9a8f..46da47149da828423e3b28c0a771f6b93838c685 100644 (file)
--- a/getopt.c
+++ b/getopt.c
@@ -43,6 +43,7 @@
 #endif
 
 #include <stdio.h>
+#include <strings.h>
 
 /* Comment out all this code if we are using the GNU C Library, and are not
    actually compiling the library itself.  This code is part of the GNU C
@@ -650,6 +651,7 @@ int
                                else
                                {
                                        if (opterr)
+                                       {
                                                if (argv[optind - 1][1] == '-')
                                                        /* --option */
                                                        fprintf(stderr,
@@ -660,6 +662,7 @@ int
                                                        fprintf(stderr,
                                                                _("%s: option `%c%s' doesn't allow an argument\n"),
                                                                argv[0], argv[optind - 1][0], pfound->name);
+                                       }
 
                                        nextchar += strlen(nextchar);