summaryrefslogtreecommitdiff
path: root/test/poll-cancel.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/poll-cancel.c')
-rw-r--r--test/poll-cancel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/poll-cancel.c b/test/poll-cancel.c
index 722e7ff..4a3626d 100644
--- a/test/poll-cancel.c
+++ b/test/poll-cancel.c
@@ -93,7 +93,7 @@ int main(int argc, char *argv[])
return 1;
}
- pd = (struct poll_data *) (uintptr_t) cqe->user_data;
+ pd = io_uring_cqe_get_data(cqe);
if (cqe->res != 0) {
printf("sqe (add=%d/remove=%d) failed with %ld\n", pd->is_poll,
pd->is_cancel, (long) cqe->res);
@@ -106,7 +106,7 @@ int main(int argc, char *argv[])
return 1;
}
- pd = (struct poll_data *) (uintptr_t) cqe->user_data;
+ pd = io_uring_cqe_get_data(cqe);
if (cqe->res != 0) {
printf("sqe (add=%d/remove=%d) failed with %ld\n", pd->is_poll,
pd->is_cancel, (long) cqe->res);