]> git.deb.at Git - pkg/abook.git/commitdiff
fix some warnings
authorJaakko Heinonen <jheinonen@users.sourceforge.net>
Sun, 10 Mar 2002 20:42:44 +0000 (20:42 +0000)
committerJaakko Heinonen <jheinonen@users.sourceforge.net>
Sun, 10 Mar 2002 20:42:44 +0000 (20:42 +0000)
getopt.c

index 0f41fb692366816f1ac535b714c75cbca4ff9a8f..ee819c1490852040a61080e6accea52e614e6e03 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
@@ -656,10 +657,12 @@ int
                                                                _("%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);