summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen LaHaise <bcrl@kvack.org>2002-09-26 16:39:38 +0000
committerBen LaHaise <bcrl@kvack.org>2002-09-26 16:39:38 +0000
commit89e16b09c34958a8efe70313bab48feb7251bf81 (patch)
tree8d9c6aa97eb890638229edebf0bd0406786cad3f
parent684fed61a0dcb049645b86f7d86649282f3bf23c (diff)
downloadlibaio-89e16b09c34958a8efe70313bab48feb7251bf81.tar.gz
io_event type changes from John
-rw-r--r--src/io_queue_run.c2
-rw-r--r--src/libaio.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/io_queue_run.c b/src/io_queue_run.c
index 83f8f2a..e0132f4 100644
--- a/src/io_queue_run.c
+++ b/src/io_queue_run.c
@@ -30,7 +30,7 @@ int io_queue_run(io_context_t ctx)
/* FIXME: batch requests? */
while (1 == (ret = io_getevents(ctx, 0, 1, &event, &timeout))) {
io_callback_t cb = (io_callback_t)event.data;
- struct iocb *iocb = (struct iocb *)event.obj;
+ struct iocb *iocb = event.obj;
cb(ctx, iocb, event.res, event.res2);
}
diff --git a/src/libaio.h b/src/libaio.h
index fa03ed9..0dfa194 100644
--- a/src/libaio.h
+++ b/src/libaio.h
@@ -94,8 +94,8 @@ struct iocb {
};
struct io_event {
- PADDEDul(data, __pad1);
- PADDEDul(obj, __pad2);
+ PADDEDptr(void *data, __pad1);
+ PADDEDptr(struct iocb *obj, __pad2);
PADDEDul(res, __pad3);
PADDEDul(res2, __pad4);
};