Using bool reduces the size of the structure and improves readability. A hole in the structure was removed.
Signed-off-by: Stefan Weil <s...@weilnetz.de> --- async.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/async.c b/async.c index ecdaf15..85cc641 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) -- 1.7.9