]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: don't use == on bools
authorCollin Funk <collin.funk1@gmail.com>
Wed, 3 Dec 2025 04:24:16 +0000 (20:24 -0800)
committerCollin Funk <collin.funk1@gmail.com>
Wed, 3 Dec 2025 04:24:16 +0000 (20:24 -0800)
* src/df.c (filter_mount_list): Adjust comment.
* src/sync.c (sync_arg): Don't use == on bools.
* src/pr.c (init_parameters): Likewise.

src/df.c
src/pr.c
src/sync.c

index d579553bb65a52781880f909990162fa43c21271..2135a05b44e652a7266d3ad0d24c1824abd00aec 100644 (file)
--- a/src/df.c
+++ b/src/df.c
@@ -697,7 +697,7 @@ devlist_for_dev (dev_t dev)
    In the case of duplicates - based on the device number - the mount entry
    with a '/' in its me_devname (i.e., not pseudo name like tmpfs) wins.
    If both have a real devname (e.g. bind mounts), then that with the shorter
-   me_mountdir wins.  With DEVICES_ONLY == true (set with df -a), only update
+   me_mountdir wins.  If DEVICES_ONLY is true (set with df -a), only update
    the global devlist_table, rather than filtering the global mount_list.  */
 
 static void
index 17c43b170c9c58f9c42efd334bbd5c0774a8166d..34f159e94fac23bfcff64749d33c06fdc69dbad9 100644 (file)
--- a/src/pr.c
+++ b/src/pr.c
@@ -1213,7 +1213,7 @@ init_parameters (int number_of_files)
       extremities = false;
       keep_FF = true;
     }
-  if (extremities == false)
+  if (! extremities)
     lines_per_body = lines_per_page;
 
   if (double_space)
index 7c518b5faec003689b12b81cfc139da170161d27..645afd4cd126a97bee560e46136a93b7de998df4 100644 (file)
@@ -125,7 +125,7 @@ sync_arg (enum sync_mode mode, char const *file)
       ret = false;
     }
 
-  if (ret == true)
+  if (ret)
     {
       int sync_status = -1;