Commit 7eee18f6 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Include sys/types.h.

Include stdio.h if we can't get NULL from somewhere else.
Removed useless casting.
parent 8fdf2217
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
** 910305 pen moved into separate file ** 910305 pen moved into separate file
*/ */
#include <sys/types.h>
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
# include <stdlib.h> # include <stdlib.h>
#endif #endif
...@@ -19,6 +20,10 @@ ...@@ -19,6 +20,10 @@
#else #else
# include <strings.h> # include <strings.h>
#endif #endif
#ifndef NULL
# include <stdio.h>
#endif
#include "isc.h" #include "isc.h"
#include "intern.h" #include "intern.h"
...@@ -42,14 +47,9 @@ extern void free(void *); ...@@ -42,14 +47,9 @@ extern void free(void *);
/* /*
** Pointers to functions to handle storage allocation ** Pointers to functions to handle storage allocation
*/ */
static void * (*isc_mallocfn)(size_t size) = static void * (*isc_mallocfn)(size_t size) = NULL;
(void * (*)(size_t)) NULL; static void * (*isc_reallocfn)(void *bufp, size_t size) = NULL;
static void (*isc_freefn)(void *bufp) = NULL;
static void * (*isc_reallocfn)(void *bufp, size_t size) =
(void * (*)(void *, size_t)) NULL;
static void (*isc_freefn)(void *bufp) =
(void (*)(void *)) NULL;
/* /*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment