20 lines
521 B
Text
20 lines
521 B
Text
$NetBSD: patch-ae,v 1.1 2006/07/29 04:39:31 minskim Exp $
|
|
|
|
--- lirec/util.c.orig 2000-06-12 22:20:14.000000000 +0000
|
|
+++ lirec/util.c
|
|
@@ -22,6 +22,7 @@ the full agreement.
|
|
#include <setjmp.h>
|
|
/* ari -- for strlen */
|
|
#include <string.h>
|
|
+#include <stdlib.h>
|
|
|
|
extern char* li_err_msg;
|
|
static char err_msg[BUFSIZ];
|
|
@@ -34,7 +35,6 @@ char *
|
|
myalloc(nitems, itemsize, typename)
|
|
char *typename;
|
|
{
|
|
- char *malloc();
|
|
register unsigned int bytes = nitems * itemsize;
|
|
register char *p = malloc(bytes);
|
|
if(p == NULL)
|