aboutsummaryrefslogtreecommitdiffstats
path: root/iolooper-select.c
diff options
context:
space:
mode:
authorVladimir Chtchetkine <vchtchetkine@google.com>2010-11-08 16:52:04 -0800
committerVladimir Chtchetkine <vchtchetkine@google.com>2010-11-10 08:36:04 -0800
commit9a33e8554225c82cd900208f88e8965bb085ab87 (patch)
tree34023906e8ded2a3f46778316634bfe4e15867cd /iolooper-select.c
parente6a439592e11235890fef5aa217c44f71f8fe45d (diff)
downloadexternal_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.c6
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);
}
}