summaryrefslogtreecommitdiff
path: root/lib/same.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-08-02 22:53:41 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-08-02 22:53:41 +0000
commitf8a01875253bfa44b2a06d4506408718f026b4ab (patch)
treea3704441e16890bc93da3f1a62c23d1673b154b5 /lib/same.c
parent7fed0a985bf0ddc625017ead80fdd6833343a9a7 (diff)
downloadcoreutils-f8a01875253bfa44b2a06d4506408718f026b4ab.tar.xz
(errno): Remove decl; we now assume C89 or better.
(same_name): Return bool, not int.
Diffstat (limited to 'lib/same.c')
-rw-r--r--lib/same.c9
1 files changed, 4 insertions, 5 deletions
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 <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. */