summaryrefslogtreecommitdiff
path: root/test/io_uring_enter.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-04-07 18:36:43 -0600
committerJens Axboe <axboe@kernel.dk>2019-04-07 18:36:43 -0600
commitdb11f116c72a8ff3e306a8d5d1882d90c412c36d (patch)
treed4e2e6679a2030bd55bdf6a2b728146790911a1b /test/io_uring_enter.c
parent1245d8320aa564bfcc63e8d64781fb391b421331 (diff)
Use io_uring_cqe_get_data() internally
Replace all cqe->user_data casts with io_uring_cqe_get_data(). Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'test/io_uring_enter.c')
-rw-r--r--test/io_uring_enter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/io_uring_enter.c b/test/io_uring_enter.c
index a86eeaa..4dc46c4 100644
--- a/test/io_uring_enter.c
+++ b/test/io_uring_enter.c
@@ -154,7 +154,7 @@ reap_events(struct io_uring *ring, unsigned nr)
}
if (cqe->res != 4096)
printf("cqe->res: %d, expected 4096\n", cqe->res);
- iov = (struct iovec *)cqe->user_data;
+ iov = io_uring_cqe_get_data(cqe);
free(iov->iov_base);
free(iov);
left--;