summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/util.c2
-rw-r--r--src/man.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/util.c b/lib/util.c
index faa5d643..3f4b10f9 100644
--- a/lib/util.c
+++ b/lib/util.c
@@ -63,7 +63,7 @@
* a is man_page, b is cat_page
*
* a and b have different times returns 1/3 (ret & 1) == 1
- * a and b have same times returns 0/2 !(ret & 1) == 1
+ * a and b have same times returns 0/2 (!(ret & 1)) == 1
* a is zero in length returns + 2 (for Wilf. and his stray cats)
* b is zero in length returns + 4
* stat on a fails returns -1
diff --git a/src/man.c b/src/man.c
index 9c9fab7f..d50a0822 100644
--- a/src/man.c
+++ b/src/man.c
@@ -2529,7 +2529,7 @@ static char *find_cat_file (const char *path, const char *original,
cat_file = convert_name (original, 1);
if (cat_file) {
status = is_changed (original, cat_file);
- if (status != -2 && !(status & 1) == 1) {
+ if (status != -2 && (!(status & 1)) == 1) {
debug ("found valid FSSTND cat file %s\n", cat_file);
return cat_file;
}