$NetBSD: patch-ag,v 1.2 2012/11/01 19:27:36 joerg Exp $ --- xcalev/xcalev.c.orig 2012-10-30 21:25:09.000000000 +0000 +++ xcalev/xcalev.c @@ -52,11 +52,13 @@ static char *copyright = "@(#)Copyrig ***/ #include +#include #include #include #include #include #include +#include #if defined(NeXT) #include #endif @@ -88,8 +90,6 @@ static int year; /* year to do the wor static char *memerr = "No more memory\n"; static char *usage = "Usage: xcalev [-f srcfile] [-d dir][-x][-r] [year]\n"; -char *malloc(); - /* * routines */ @@ -441,7 +441,7 @@ connect_file(filename, bytes) if (statb.st_size == 0) { *bytes = 0; - return; + return NULL; } fibase = readbfile(fd, statb.st_size);