From: Paul Eggert Date: Fri, 6 Aug 2004 06:19:08 +0000 (+0000) Subject: (same_name): Return bool, not int. X-Git-Tag: cvs-readonly~4051 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=e94d980785968429942f49c58673904f4bf604e9;p=gnulib.git (same_name): Return bool, not int. (errno): Don't declare; we assume C89 or better now. --- diff --git a/lib/same.c b/lib/same.c index aa1a2318f..33e13a01b 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. */