[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/2] async: Use bool for boolean struct members and
From: |
Stefan Weil |
Subject: |
[Qemu-devel] [PATCH 1/2] async: Use bool for boolean struct members and remove a hole |
Date: |
Sun, 29 Apr 2012 19:08:45 +0200 |
Using bool reduces the size of the structure and improves readability.
A hole in the structure was removed.
Signed-off-by: Stefan Weil <address@hidden>
---
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
- [Qemu-devel] [PATCH 1/2] async: Use bool for boolean struct members and remove a hole,
Stefan Weil <=