blob: 232d983cc0462561c856601f2f503551b60c0343 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-lib_util_c,v 1.1 2011/11/15 00:11:07 dholland Exp $
- use standard headers
--- lib/util.c~ 1997-10-19 00:06:56.000000000 +0000
+++ lib/util.c
@@ -26,6 +26,7 @@ static char *rcsid = "$Id: util.c,v 1.27
#endif
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
@@ -239,8 +240,6 @@ memory_error_and_abort (nbytes)
handle_error(FATAL, "(re)alloc error. Cannot allocate %d bytes.", nbytes);
}
-extern char *malloc(), *realloc();
-
void *
xmalloc (nbytes)
int nbytes;
|