From: Paul Eggert Date: Mon, 2 Aug 2004 22:53:41 +0000 (+0000) Subject: (errno): Remove decl; we now assume C89 or better. X-Git-Tag: v5.3.0~918 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8a01875253bfa44b2a06d4506408718f026b4ab;p=thirdparty%2Fcoreutils.git (errno): Remove decl; we now assume C89 or better. (same_name): Return bool, not int. --- diff --git a/lib/same.c b/lib/same.c index aa1a2318fc..33e13a01b7 100644 --- a/lib/same.c +++ b/lib/same.c @@ -1,5 +1,7 @@ /* Determine whether two file names refer to the same file. - Copyright (C) 1997-2000, 2002-2003 Free Software Foundation, Inc. + + Copyright (C) 1997, 1998, 1999, 2000, 2002, 2003, 2004 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 @@ -31,9 +33,6 @@ #include #include #include -#ifndef errno -extern int errno; -#endif #include @@ -56,7 +55,7 @@ extern int errno; /* Return nonzero if SOURCE and DEST point to the same name in the same directory. */ -int +bool same_name (const char *source, const char *dest) { /* Compare the basenames. */