mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(remember_created): Use bool when appropriate.
This commit is contained in:
1 parent
1c9f7316d2
commit
89c5dddb8f
1 file changed
+4
-4
+4
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user