Skip to content
Snippets Groups Projects
Commit c97feed1 authored by Stefan Weil's avatar Stefan Weil Committed by Stefan Hajnoczi
Browse files

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: default avatarStefan Weil <sw@weilnetz.de>
Signed-off-by: default avatarStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
parent 9b47b17e
No related branches found
No related tags found
No related merge requests found
......@@ -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 =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment