diff options
author | Stefan Weil <sw@weilnetz.de> | 2012-04-29 19:08:46 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2012-05-01 10:13:33 +0100 |
commit | c97feed13cded953b11465829f66b9323a47a0f9 (patch) | |
tree | 9749b5359801e2fa8c8d277afbc8b87fa3326a04 /iohandler.c | |
parent | 9b47b17e80cfd10e0598209ae9313de135000f61 (diff) | |
download | qemu-c97feed13cded953b11465829f66b9323a47a0f9.tar.gz qemu-c97feed13cded953b11465829f66b9323a47a0f9.tar.bz2 qemu-c97feed13cded953b11465829f66b9323a47a0f9.zip |
iohandler: Use bool for boolean struct member and remove holes
Using bool reduces the size of the structure and improves readability.
Two holes in the structure were removed.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'iohandler.c')
-rw-r--r-- | iohandler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iohandler.c b/iohandler.c index 5640d49388..3c74de612b 100644 --- a/iohandler.c +++ b/iohandler.c @@ -33,13 +33,13 @@ #endif typedef struct IOHandlerRecord { - int fd; IOCanReadHandler *fd_read_poll; IOHandler *fd_read; IOHandler *fd_write; - int deleted; void *opaque; QLIST_ENTRY(IOHandlerRecord) next; + int fd; + bool deleted; } IOHandlerRecord; static QLIST_HEAD(, IOHandlerRecord) io_handlers = |