summaryrefslogtreecommitdiff
path: root/aio-win32.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2013-08-22 15:28:35 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2013-08-22 22:04:54 +0200
commit8b2d42d273ed0df2a34cfa29f47bc1f8cc3abb26 (patch)
tree294b49f35c6db8f045b806fa08f6a61a99f9a8ed /aio-win32.c
parent91c68f143d6e707c5783b162292dce38ae358c19 (diff)
downloadqemu-8b2d42d273ed0df2a34cfa29f47bc1f8cc3abb26.tar.gz
qemu-8b2d42d273ed0df2a34cfa29f47bc1f8cc3abb26.tar.bz2
qemu-8b2d42d273ed0df2a34cfa29f47bc1f8cc3abb26.zip
aio-win32: replace incorrect AioHandler->opaque usage with ->e
The AioHandler->opaque field does not exist in aio-win32.c. The code that uses it was incorrectly copied from aio-posix.c. For Windows we can use AioHandler->e to match against AioContext->notifier. This patch fixes the Windows build for aio-win32.o. Reviewed-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'aio-win32.c')
-rw-r--r--aio-win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/aio-win32.c b/aio-win32.c
index 721fc252ab..f9cfbb75ac 100644
--- a/aio-win32.c
+++ b/aio-win32.c
@@ -129,7 +129,7 @@ bool aio_poll(AioContext *ctx, bool blocking)
node->io_notify(node->e);
/* aio_notify() does not count as progress */
- if (node->opaque != &ctx->notifier) {
+ if (node->e != &ctx->notifier) {
progress = true;
}
}
@@ -195,7 +195,7 @@ bool aio_poll(AioContext *ctx, bool blocking)
node->io_notify(node->e);
/* aio_notify() does not count as progress */
- if (node->opaque != &ctx->notifier) {
+ if (node->e != &ctx->notifier) {
progress = true;
}
}