qemu-trivial.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH 1/2] async: Use bool for boolean struct members and remove a hole
@ 2012-04-29 17:08 Stefan Weil
  2012-04-29 17:08 ` [Qemu-trivial] [PATCH 2/2] iohandler: Use bool for boolean struct member and remove holes Stefan Weil
  2012-05-01  9:13 ` [Qemu-trivial] [Qemu-devel] [PATCH 1/2] async: Use bool for boolean struct members and remove a hole Stefan Hajnoczi
  0 siblings, 2 replies; 3+ messages in thread
From: Stefan Weil @ 2012-04-29 17:08 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, Stefan Weil

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>
---
 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



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-01  9:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-29 17:08 [Qemu-trivial] [PATCH 1/2] async: Use bool for boolean struct members and remove a hole Stefan Weil
2012-04-29 17:08 ` [Qemu-trivial] [PATCH 2/2] iohandler: Use bool for boolean struct member and remove holes Stefan Weil
2012-05-01  9:13 ` [Qemu-trivial] [Qemu-devel] [PATCH 1/2] async: Use bool for boolean struct members and remove a hole Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).