]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(hash_compare_strings): Return true or false, not 1/0.
authorJim Meyering <jim@meyering.net>
Sat, 16 May 1998 04:40:38 +0000 (04:40 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 16 May 1998 04:40:38 +0000 (04:40 +0000)
(remove_cwd_entries): Use RM_OK, not equivalent literal `1'.

src/remove.c

index f91ac55d41e1b6138414294887da40248be12e0c..c7bb679bad482997dd8a0c6787445077b5618a96 100644 (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;