1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-29 11:59:36 +02:00

(hash_compare_strings): Return true or false, not 1/0.

(remove_cwd_entries): Use RM_OK, not equivalent literal `1'.
This commit is contained in:
Jim Meyering
1998-05-16 04:40:38 +00:00
parent 4f75855c2e
commit 085866c1a3
+2 -2
View File
@@ -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;