From 9b47b17e80cfd10e0598209ae9313de135000f61 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 29 Apr 2012 19:08:45 +0200 Subject: async: Use bool for boolean struct members and remove a hole Using bool reduces the size of the structure and improves readability. A hole in the structure was removed. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- async.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/async.c b/async.c index ecdaf15887..85cc6410c5 100644 --- a/async.c +++ b/async.c @@ -35,10 +35,10 @@ static struct QEMUBH *first_bh; struct QEMUBH { QEMUBHFunc *cb; void *opaque; - int scheduled; - int idle; - int deleted; QEMUBH *next; + bool scheduled; + bool idle; + bool deleted; }; QEMUBH *qemu_bh_new(QEMUBHFunc *cb, void *opaque) -- cgit v1.2.3