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 @@
** 910305 pen moved into separate file
*/
#include <sys/types.h>
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
......@@ -19,6 +20,10 @@
#else
# include <strings.h>
#endif
#ifndef NULL
# include <stdio.h>
#endif
#include "isc.h"
#include "intern.h"
......@@ -42,14 +47,9 @@ extern void free(void *);
/*
** Pointers to functions to handle storage allocation
*/
static void * (*isc_mallocfn)(size_t size) =
(void * (*)(size_t)) NULL;
static void * (*isc_reallocfn)(void *bufp, size_t size) =
(void * (*)(void *, size_t)) NULL;
static void (*isc_freefn)(void *bufp) =
(void (*)(void *)) NULL;
static void * (*isc_mallocfn)(size_t size) = NULL;
static void * (*isc_reallocfn)(void *bufp, size_t size) = NULL;
static void (*isc_freefn)(void *bufp) = 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