[libgtop] Place parentheses to silence clang warnings
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgtop] Place parentheses to silence clang warnings
- Date: Mon, 28 Mar 2022 08:14:23 +0000 (UTC)
commit 1cb23c7b83cde737944a5b0ab7e142eea6417c19
Author: Avinash Sonawane <rootkea gmail com>
Date: Mon Dec 20 12:59:41 2021 +0530
Place parentheses to silence clang warnings
sysdeps/linux/disk.c | 8 ++++----
1 file 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]