summaryrefslogtreecommitdiff
path: root/src/remove.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-05-16 04:40:38 +0000
committerJim Meyering <jim@meyering.net>1998-05-16 04:40:38 +0000
commit085866c1a33461cf5d62b85029b60e897fdfc064 (patch)
treeab521bfc56430a90d54dd0dd6edfbed9f2eca9f7 /src/remove.c
parent4f75855c2eec3258c7dd7d109bd4f47e612931db (diff)
downloadcoreutils-085866c1a33461cf5d62b85029b60e897fdfc064.tar.xz
(hash_compare_strings): Return true or false, not 1/0.
(remove_cwd_entries): Use RM_OK, not equivalent literal `1'.
Diffstat (limited to 'src/remove.c')
-rw-r--r--src/remove.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remove.c b/src/remove.c
index f91ac55d4..c7bb679ba 100644
--- a/src/remove.c
+++ b/src/remove.c
@@ -206,7 +206,7 @@ hash_pjw (const void *x, unsigned int tablesize)
static bool
hash_compare_strings (void const *x, void const *y)
{
- return STREQ (x, y);
+ return STREQ (x, y) ? true : false;
}
static inline void
@@ -568,7 +568,7 @@ remove_cwd_entries (const struct rm_options *x)
if (CLOSEDIR (dirp))
{
error (0, errno, "%s", full_filename ("."));
- status = 1;
+ status = RM_OK;
}
dirp = NULL;