diff options
author | Vladimir Chtchetkine <vchtchetkine@google.com> | 2010-11-08 16:52:04 -0800 |
---|---|---|
committer | Vladimir Chtchetkine <vchtchetkine@google.com> | 2010-11-10 08:36:04 -0800 |
commit | 9a33e8554225c82cd900208f88e8965bb085ab87 (patch) | |
tree | 34023906e8ded2a3f46778316634bfe4e15867cd /iolooper-select.c | |
parent | e6a439592e11235890fef5aa217c44f71f8fe45d (diff) | |
download | external_qemu-9a33e8554225c82cd900208f88e8965bb085ab87.zip external_qemu-9a33e8554225c82cd900208f88e8965bb085ab87.tar.gz external_qemu-9a33e8554225c82cd900208f88e8965bb085ab87.tar.bz2 |
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
Diffstat (limited to 'iolooper-select.c')
-rw-r--r-- | iolooper-select.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } } |