From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SP9VB-0001ex-Sq for qemu-devel@nongnu.org; Tue, 01 May 2012 05:36:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SP9V8-00035D-Rq for qemu-devel@nongnu.org; Tue, 01 May 2012 05:36:09 -0400 Received: from e06smtp15.uk.ibm.com ([195.75.94.111]:49117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SP9V8-00033r-J9 for qemu-devel@nongnu.org; Tue, 01 May 2012 05:36:06 -0400 Received: from /spool/local by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 1 May 2012 10:36:02 +0100 Received: from d06av07.portsmouth.uk.ibm.com (d06av07.portsmouth.uk.ibm.com [9.149.37.248]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q419Zxmu2945128 for ; Tue, 1 May 2012 10:35:59 +0100 Received: from d06av07.portsmouth.uk.ibm.com (d06av07.portsmouth.uk.ibm.com [127.0.0.1]) by d06av07.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q419WLEu013664 for ; Tue, 1 May 2012 05:32:21 -0400 From: Stefan Hajnoczi Date: Tue, 1 May 2012 10:35:55 +0100 Message-Id: <1335864955-30495-4-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1335864955-30495-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1335864955-30495-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 3/3] iohandler: Use bool for boolean struct member and remove holes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 = -- 1.7.10