diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-07-30 07:55:59 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-07-30 07:55:59 +0000 |
commit | 89c5dddb8ff8bdb00c882ff0d28d3ddf6b3063e9 (patch) | |
tree | b44f8b39c91a4fb8593b0529d24d11ca64b331fe | |
parent | 1c9f7316d24551598f1b9c4f0a5bda3f3ecfcd86 (diff) | |
download | coreutils-89c5dddb8ff8bdb00c882ff0d28d3ddf6b3063e9.tar.xz |
(remember_created): Use bool when appropriate.
-rw-r--r-- | src/cp-hash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cp-hash.c b/src/cp-hash.c index c6c447bc5..b498f96bc 100644 --- a/src/cp-hash.c +++ b/src/cp-hash.c @@ -99,9 +99,9 @@ forget_created (ino_t ino, dev_t dev) } /* Add PATH to the list of files that we have created. - Return 1 if we can't stat PATH, otherwise 0. */ + Return true if successful. */ -extern int +bool remember_created (const char *path) { struct stat sb; @@ -109,11 +109,11 @@ remember_created (const char *path) if (stat (path, &sb) < 0) { error (0, errno, "%s", quote (path)); - return 1; + return false; } remember_copied (path, sb.st_ino, sb.st_dev); - return 0; + return true; } /* If INO/DEV correspond to an already-copied source file, return the |