pkgsrc/x11/xscribble/patches/patch-ae
2012-07-30 04:08:53 +00:00

23 lines
575 B
Text

$NetBSD: patch-ae,v 1.2 2012/07/30 04:08:53 dholland Exp $
- Use standard headers.
- Don't declare own malloc.
--- 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)