From c97feed13cded953b11465829f66b9323a47a0f9 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 29 Apr 2012 19:08:46 +0200 Subject: 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 Signed-off-by: Stefan Hajnoczi --- iohandler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'iohandler.c') 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 = -- cgit v1.2.1