Skip to content

Commit

Permalink
aio-win32: replace incorrect AioHandler->opaque usage with ->e
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
  • Loading branch information
stefanhaRH committed Aug 22, 2013
1 parent 91c68f1 commit 8b2d42d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aio-win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 8b2d42d

Please sign in to comment.