summaryrefslogtreecommitdiff
path: root/test/io-cancel.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/io-cancel.c')
-rw-r--r--test/io-cancel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/io-cancel.c b/test/io-cancel.c
index aeaa0ff..4dfcef0 100644
--- a/test/io-cancel.c
+++ b/test/io-cancel.c
@@ -26,8 +26,7 @@ static int create_buffers(void)
vecs = io_uring_malloc(BUFFERS * sizeof(struct iovec));
for (i = 0; i < BUFFERS; i++) {
- if (posix_memalign(&vecs[i].iov_base, BS, BS))
- return 1;
+ io_uring_posix_memalign(&vecs[i].iov_base, BS, BS);
vecs[i].iov_len = BS;
}