all: include-what-you-see fixes

After uint32_t fix from 1e82461875
it was good idea to check which headers where needed where. And
generally clean up the includes while doing the check.
This commit is contained in:
Sami Kerola 2011-07-08 18:02:36 +02:00
parent d02b684133
commit 26db4eafdc
6 changed files with 20 additions and 18 deletions

View file

@ -33,28 +33,28 @@
* official policies, either expressed or implied, of Sami Kerola.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "dhcpd-pools.h"
#include <stdio.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#else /* Not STDC_HEADERS */
#else
extern void exit();
extern char *malloc();
#endif /* STDC_HEADERS */
#include <err.h>
#include <errno.h>
#include <stddef.h>
#endif
#ifdef HAVE_STRING_H
#include <string.h>
#else
#include <strings.h>
#endif
#include <err.h>
#include <errno.h>
#include <stddef.h>
#include <stdio.h>
/* Simple memory allocation wrapper */
void *safe_malloc(const size_t size)
{