]> git.proxmox.com Git - mirror_qemu.git/commitdiff
tests/libqos: fix usage of bool in pci-spapr.c
authorJafar Abdi <cafer.abdi@gmail.com>
Sat, 23 Mar 2019 14:26:36 +0000 (17:26 +0300)
committerThomas Huth <thuth@redhat.com>
Mon, 8 Apr 2019 10:38:07 +0000 (12:38 +0200)
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>
tests/libqos/pci-spapr.c

index 69259259973f0bc4815453415c8145ab61e500e5..58ba27ae6d8ce61739128f5760362de5a70341d4 100644 (file)
@@ -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;