** along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
+#include <stddef.h>
#include <stdlib.h>
-#include <stdio.h>
#include "dhcpd-pools.h"
#endif
#include <stdio.h>
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#else /* Not STDC_HEADERS */
#else
#include <strings.h>
#endif
-#include <getopt.h>
-#include <errno.h>
#include <err.h>
+#include <errno.h>
+#include <getopt.h>
-#include "dhcpd-pools.h"
#include "defaults.h"
+#include "dhcpd-pools.h"
int main(int argc, char **argv)
{
# define DHCPD_POOLS_H 1
#include <config.h>
+#include <stddef.h>
/* Feature test switches */
#define _POSIX_SOURCE 1
#define POSIXLY_CORRECT 1
#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
#else
extern void exit();
extern char *malloc();
+#define EXIT_FAILURE 1
+#define EXIT_SUCCESS 0
#endif /* STDC_HEADERS */
#ifndef HAVE_PROGRAM_INVOCATION_SHORT_NAME
#include <config.h>
#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#else /* Not STDC_HEADERS */
#include <strings.h>
#endif
-#include <stdio.h>
#include <arpa/inet.h>
+#include <assert.h>
+#include <ctype.h>
+#include <err.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <features.h>
#include <netinet/in.h>
-#include <sys/socket.h>
+#include <stddef.h>
+#include <stdio.h>
#include <sys/stat.h>
-#include <sys/types.h>
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 600
#endif
-#include <fcntl.h>
-#include <errno.h>
-#include <err.h>
-#include <ctype.h>
-#include <assert.h>
#include "dhcpd-pools.h"
#include "defaults.h"
# 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
# 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
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
\f
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include "getopt.h"
+#include <features.h>
#if !defined __STDC__ || !__STDC__
/* This is a separate conditional since some stdc systems
#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
extern void exit();
extern char *malloc();
#endif /* STDC_HEADERS */
-#include <errno.h>
#include <err.h>
-#include <stdarg.h>
+#include <errno.h>
+#include <stddef.h>
#ifdef HAVE_STRING_H
#include <string.h>
#else
#include <config.h>
#endif
-#include <stdio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
#include <arpa/inet.h>
#include <err.h>
+#include <netinet/in.h>
+#include <stdio.h>
+#include <stdlib.h>
#include "dhcpd-pools.h"
** along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
-
+#include <err.h>
+#include <errno.h>
#include <stdlib.h>
-#include <stdio.h>
#include <string.h>
-#include <errno.h>
-#include <err.h>
#include "dhcpd-pools.h"