Skip to contentSkip to conversation

remove unnecessary bool from qemu-kvm.c

PATCH In review Jes Sorensen 2 participants 2 messages Nov 14, 2008 – Nov 18, 2008 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove unnecessary bool from qemu-kvm.c

Hi,

In support of Avi's preference for half line patches, I split out the bool eliminating bits too.

Cheers,
Jes

Replace unnecessary use of _Bool type with int.

---
 qemu/qemu-kvm.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
qemu/qemu-kvm.c +1 -2
Index: kvm-userspace.git/qemu/qemu-kvm.c
===================================================================
@@ -28,7 +28,6 @@
 #include <sys/syscall.h>
 #include <sys/mman.h>
 
-#define bool _Bool
 #define false 0
 #define true 1
 
@@ -53,7 +52,7 @@
     struct qemu_kvm_work_item *next;
     void (*func)(void *data);
     void *data;
-    bool done;
+    int done;
 };
 
 struct vcpu_info {
#1 lore raw
Quoted 3 lines · Jes Sorensen

In support of Avi's preference for half line patches, I split out the bool eliminating bits too.

I actually like _Bool, but as we're trying to close the gap with qemu, I applied this patch.

Signature · 1 line
error compiling committee.c: too many arguments to function