headers: include-what-you-use fixes
[debian/dhcpd-pools.git] / src / getopt.c
index 697169c..8f49931 100644 (file)
@@ -26,9 +26,7 @@
 # define _NO_PROTO
 #endif
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <features.h>
 
 #if !defined __STDC__ || !__STDC__
 /* This is a separate conditional since some stdc systems
@@ -38,8 +36,6 @@
 # endif
 #endif
 
-#include <stdio.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
    Library, but also included in many other GNU distributions.  Compiling
@@ -700,7 +696,8 @@ int long_only;
                                                                _
                                                                ("%s: option `--%s' doesn't allow an argument\n"),
                                                                argv[0],
-                                                               pfound->name);
+                                                               pfound->
+                                                               name);
                                                else
                                                        /* +option or -option */
                                                        fprintf(stderr,
@@ -710,7 +707,8 @@ int long_only;
                                                                argv[optind
                                                                     -
                                                                     1][0],
-                                                               pfound->name);
+                                                               pfound->
+                                                               name);
                                        }
 
                                        nextchar += strlen(nextchar);
@@ -884,7 +882,8 @@ int long_only;
                                        else {
                                                if (print_errors)
                                                        fprintf(stderr, _("\
-%s: option `-W %s' doesn't allow an argument\n"), argv[0], pfound->name);
+%s: option `-W %s' doesn't allow an argument\n"), argv[0], pfound->
+                                                               name);
 
                                                nextchar +=
                                                    strlen(nextchar);