pkgsrc/net/icsi-finger/patches/patch-lib_util_c

24 lines
553 B
Text
Raw Normal View History

$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;