$NetBSD: patch-lib-src_sorted-doc_c,v 1.1 2011/12/24 17:07:07 dholland Exp $ - use standard headers - fix malloc usage --- lib-src/sorted-doc.c~ 1992-10-07 18:21:09.000000000 +0000 +++ lib-src/sorted-doc.c @@ -6,11 +6,10 @@ */ #include +#include +#include #include -extern char *malloc (); -char *xmalloc (); - #define NUL '\0' #define MARKER '\037' @@ -56,9 +55,8 @@ error (s1, s2) /* Like malloc but get fatal error if memory is exhausted. */ -char * -xmalloc (size) - int size; +void * +xmalloc (size_t size) { char *result = malloc ((unsigned)size); if (result == NULL)