aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-04-29 19:08:45 +0200
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2012-05-01 10:13:25 +0100
commit9b47b17e80cfd10e0598209ae9313de135000f61 (patch)
treec4cb4ac825ec837e05f7b89808a0fea7bf37bf45
parent72b8b5a19a3087ffa5556b5d5b3fc13300ae35d5 (diff)
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 <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-rw-r--r--async.c6
1 files 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)