From: Jim Meyering Date: Sat, 7 Jun 2003 10:19:12 +0000 (+0000) Subject: Don't declare xmalloc explicitly. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbb2fa83e7cbf17ccb8ef522a3ded883840697f9;p=pspp Don't declare xmalloc explicitly. Instead, include "xalloc.h". --- diff --git a/lib/stat.c b/lib/stat.c index f3f373b958..3f77562be9 100644 --- a/lib/stat.c +++ b/lib/stat.c @@ -1,7 +1,7 @@ /* Work around the bug in some systems whereby stat/lstat succeeds when given the zero-length file name argument. The stat/lstat from SunOS4.1.4 has this bug. - Copyright (C) 1997-2002 Free Software Foundation, Inc. + Copyright (C) 1997-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -53,7 +53,7 @@ extern int errno; void free (); # endif -char *xmalloc (); +# include "xalloc.h" /* lstat works differently on Linux and Solaris systems. POSIX (see `pathname resolution' in the glossary) requires that programs like `ls'