projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72b8b5a
)
async: Use bool for boolean struct members and remove a hole
author
Stefan Weil
<sw@weilnetz.de>
Sun, 29 Apr 2012 17:08:45 +0000
(19:08 +0200)
committer
Stefan Hajnoczi
<stefanha@linux.vnet.ibm.com>
Tue, 1 May 2012 09:13:25 +0000
(10:13 +0100)
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>
async.c
patch
|
blob
|
history
diff --git
a/async.c
b/async.c
index ecdaf15887c6afcbfd4883b09f583505d802f3a6..85cc6410c50259398beef693ec00b649823dcde3 100644
(file)
--- 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)