From patchwork Tue May 1 09:35:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3/3] iohandler: Use bool for boolean struct member and remove holes Date: Mon, 30 Apr 2012 23:35:55 -0000 From: Stefan Hajnoczi X-Patchwork-Id: 156042 Message-Id: <1335864955-30495-4-git-send-email-stefanha@linux.vnet.ibm.com> To: Anthony Liguori Cc: Stefan Weil , qemu-devel@nongnu.org, Stefan Hajnoczi From: Stefan Weil Using bool reduces the size of the structure and improves readability. Two holes in the structure were removed. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- iohandler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iohandler.c b/iohandler.c index 5640d49..3c74de6 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 =