summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvinash Sonawane <rootkea@gmail.com>2021-12-20 12:59:41 +0530
committerRobert Roth <robert.roth.off@gmail.com>2022-03-28 07:59:57 +0000
commit1cb23c7b83cde737944a5b0ab7e142eea6417c19 (patch)
treebfcbd33bd11041f3b5b5e8dce28db22d4b1fc624
parentb1b05985b13f7bea410ee188782469fa76e09f74 (diff)
downloadlibgtop-1cb23c7b83cde737944a5b0ab7e142eea6417c19.tar.gz
Place parentheses to silence clang warnings
-rw-r--r--sysdeps/linux/disk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/linux/disk.c b/sysdeps/linux/disk.c
index f79c1a06..86d19652 100644
--- a/sysdeps/linux/disk.c
+++ b/sysdeps/linux/disk.c
@@ -109,14 +109,14 @@ find_primary_part (partition_info *primary_part, const char *m)
primary_part->max++;
}
- else if ((strcmp (primary_part[n-1].type, "lvm") == 0) && (strcmp (type, "lvm") == 0) ||
- (strcmp (primary_part[n-1].type, "raid") == 0) && (strncmp (type, "raid", 4) == 0)) {
+ else if (((strcmp (primary_part[n-1].type, "lvm") == 0) && (strcmp (type, "lvm") == 0)) ||
+ ((strcmp (primary_part[n-1].type, "raid") == 0) && (strncmp (type, "raid", 4) == 0))) {
n--;
}
- else if ((strcmp (primary_part[n-1].type, "lvm") == 0) && (strcmp (type, "part") == 0) ||
- (strcmp (primary_part[n-1].type, "raid") == 0) && (strcmp (type, "part") == 0)) {
+ else if (((strcmp (primary_part[n-1].type, "lvm") == 0) && (strcmp (type, "part") == 0)) ||
+ ((strcmp (primary_part[n-1].type, "raid") == 0) && (strcmp (type, "part") == 0))) {
n--;
tlvl = 1;