[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH V2 3/4] tests/libqos: fix usage of bool in pci-spapr
From: |
Jafar Abdi |
Subject: |
[Qemu-devel] [PATCH V2 3/4] tests/libqos: fix usage of bool in pci-spapr.c |
Date: |
Sat, 23 Mar 2019 17:26:36 +0300 |
Clean up wrong usage of FALSE and TRUE in places that use "bool" from stdbool.h.
FALSE and TRUE (with capital letters) are the constants defined by glib for
being used with the "gboolean" type of glib. But some parts of the code also use
TRUE and FALSE for variables that are declared as "bool" (the type from
<stdbool.h>).
Signed-off-by: Jafar Abdi <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
---
tests/libqos/pci-spapr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/libqos/pci-spapr.c b/tests/libqos/pci-spapr.c
index 6925925..58ba27a 100644
--- a/tests/libqos/pci-spapr.c
+++ b/tests/libqos/pci-spapr.c
@@ -156,7 +156,7 @@ void qpci_init_spapr(QPCIBusSPAPR *qpci, QTestState *qts,
assert(qts);
/* tests cannot use spapr, needs to be fixed first */
- qpci->bus.has_buggy_msi = TRUE;
+ qpci->bus.has_buggy_msi = true;
qpci->alloc = alloc;
--
2.7.4
- [Qemu-devel] [PATCH V2 0/4] fix usage of bool, Jafar Abdi, 2019/03/23
- [Qemu-devel] [PATCH V2 1/4] authz: fix usage of bool in listfile.c, Jafar Abdi, 2019/03/23
- [Qemu-devel] [PATCH V2 2/4] tests/libqos: fix usage of bool in pci-pc.c, Jafar Abdi, 2019/03/23
- [Qemu-devel] [PATCH V2 4/4] hw/tpm: fix usage of bool in tpm-tis.c, Jafar Abdi, 2019/03/23
- [Qemu-devel] [PATCH V2 3/4] tests/libqos: fix usage of bool in pci-spapr.c,
Jafar Abdi <=
- Re: [Qemu-devel] [PATCH V2 0/4] fix usage of bool, Stefan Hajnoczi, 2019/03/26
- Re: [Qemu-devel] [PATCH V2 0/4] fix usage of bool, Stefan Hajnoczi, 2019/03/26