mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(errno): Remove decl; we now assume C89 or better.
(same_name): Return bool, not int.
This commit is contained in:
1 parent
7fed0a985b
commit
f8a0187525
1 file changed
+4
-5
+4
-5
@@ -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 <sys/stat.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#ifndef errno
|
||||
extern int errno;
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
|
||||
@@ -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. */
|
||||
|
||||
Reference in new issue
Block a user