From f23509b4f1bb834dcc1f16f34db9677463a2df6e Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Tue, 2 Dec 2025 20:24:16 -0800 Subject: [PATCH] maint: don't use == on bools * 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 | 2 +- src/pr.c | 2 +- src/sync.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/df.c b/src/df.c index d579553bb6..2135a05b44 100644 --- 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 diff --git a/src/pr.c b/src/pr.c index 17c43b170c..34f159e94f 100644 --- 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) diff --git a/src/sync.c b/src/sync.c index 7c518b5fae..645afd4cd1 100644 --- a/src/sync.c +++ b/src/sync.c @@ -125,7 +125,7 @@ sync_arg (enum sync_mode mode, char const *file) ret = false; } - if (ret == true) + if (ret) { int sync_status = -1; -- 2.47.3