--- shadow-4.0.4.1/libmisc/xmalloc.c.orig 2003-04-22 14:59:22 +0400 +++ shadow-4.0.4.1/libmisc/xmalloc.c 2005-01-16 01:30:56 +0300 @@ -12,14 +12,14 @@ #include "rcsid.h" RCSID ("$Id: xmalloc.c,v 1.4 2003/04/22 10:59:22 kloczek Exp $") #include +#include #include "defines.h" -extern char *malloc (); char *xmalloc (size_t size) { char *ptr; - ptr = malloc (size); + ptr = (char *) malloc (size); if (!ptr && size) { fprintf (stderr, _("malloc(%d) failed\n"), (int) size); exit (13);