diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2013-08-22 15:28:35 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-08-22 22:04:54 +0200 |
commit | 8b2d42d273ed0df2a34cfa29f47bc1f8cc3abb26 (patch) | |
tree | 294b49f35c6db8f045b806fa08f6a61a99f9a8ed | |
parent | 91c68f143d6e707c5783b162292dce38ae358c19 (diff) |
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>
-rw-r--r-- | aio-win32.c | 4 |
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; } } |