diff options
author | Avinash Sonawane <rootkea@gmail.com> | 2021-12-20 12:59:41 +0530 |
---|---|---|
committer | Robert Roth <robert.roth.off@gmail.com> | 2022-03-28 07:59:57 +0000 |
commit | 1cb23c7b83cde737944a5b0ab7e142eea6417c19 (patch) | |
tree | bfcbd33bd11041f3b5b5e8dce28db22d4b1fc624 | |
parent | b1b05985b13f7bea410ee188782469fa76e09f74 (diff) | |
download | libgtop-1cb23c7b83cde737944a5b0ab7e142eea6417c19.tar.gz |
Place parentheses to silence clang warnings
-rw-r--r-- | sysdeps/linux/disk.c | 8 |
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; |