From 9a33e8554225c82cd900208f88e8965bb085ab87 Mon Sep 17 00:00:00 2001 From: Vladimir Chtchetkine Date: Mon, 8 Nov 2010 16:52:04 -0800 Subject: Implement -list-cores UI option Also fixed a bug in iolooper-select.c (io_looper_del_write was buggy) Also switched iolooper-select.c to use malloc/free instead of qemu_xxx Change-Id: Ief47608f30a863d624af6363620e93e903cbdadc --- iolooper-select.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'iolooper-select.c') diff --git a/iolooper-select.c b/iolooper-select.c index f5aecbd..000fa5d 100644 --- a/iolooper-select.c +++ b/iolooper-select.c @@ -21,7 +21,7 @@ struct IoLooper { IoLooper* iolooper_new(void) { - IoLooper* iol = qemu_malloc(sizeof(*iol)); + IoLooper* iol = malloc(sizeof(*iol)); iolooper_reset(iol); return iol; } @@ -29,7 +29,7 @@ iolooper_new(void) void iolooper_free( IoLooper* iol ) { - qemu_free(iol); + free(iol); } void @@ -110,7 +110,7 @@ iolooper_del_write( IoLooper* iol, int fd ) { if (fd >= 0) { iolooper_del_fd(iol, fd); - FD_CLR(fd, iol->reads); + FD_CLR(fd, iol->writes); } } -- cgit v1.1