From 8b2d42d273ed0df2a34cfa29f47bc1f8cc3abb26 Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Thu, 22 Aug 2013 15:28:35 +0200 Subject: 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 Signed-off-by: Stefan Hajnoczi --- aio-win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'aio-win32.c') 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; } } -- cgit v1.2.1