summaryrefslogtreecommitdiffstats
path: root/tests/libqos
diff options
context:
space:
mode:
authorJafar Abdi2019-03-23 15:26:36 +0100
committerThomas Huth2019-04-08 12:38:07 +0200
commitc098aac7dcc6f7c359be15c88ee26a1da8735f3f (patch)
tree06bd4ddacc71a06523c75af66e937a89b3b8639d /tests/libqos
parenttests/libqos: fix usage of bool in pci-pc.c (diff)
downloadqemu-c098aac7dcc6f7c359be15c88ee26a1da8735f3f.tar.gz
qemu-c098aac7dcc6f7c359be15c88ee26a1da8735f3f.tar.xz
qemu-c098aac7dcc6f7c359be15c88ee26a1da8735f3f.zip
tests/libqos: fix usage of bool in pci-spapr.c
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 <cafer.abdi@gmail.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Acked-by: David Gibson <david@gibson.dropbear.id.au> Message-Id: <1553351197-14581-4-git-send-email-cafer.abdi@gmail.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/libqos')
-rw-r--r--tests/libqos/pci-spapr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libqos/pci-spapr.c b/tests/libqos/pci-spapr.c
index 6925925997..58ba27ae6d 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;