aboutsummaryrefslogtreecommitdiffstats
path: root/iolooper-select.c
diff options
context:
space:
mode:
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);
}
}