Patchwork [PULL,41/42] aio-win32: replace incorrect AioHandler->opaque usage with ->e

login
register
mail settings
Submitter Stefan Hajnoczi
Date Aug. 22, 2013, 8:11 p.m.
Message ID <1377202298-22896-42-git-send-email-stefanha@redhat.com>
Download mbox | patch
Permalink /patch/269184/
State New
Headers show

Comments

Stefan Hajnoczi - Aug. 22, 2013, 8:11 p.m.
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>
---
 aio-win32.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/aio-win32.c b/aio-win32.c
index 721fc25..f9cfbb7 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;
                 }
             }