summaryrefslogtreecommitdiff
path: root/test/iopoll.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/iopoll.c')
-rw-r--r--test/iopoll.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/iopoll.c b/test/iopoll.c
index 2f47b3e..9a27dac 100644
--- a/test/iopoll.c
+++ b/test/iopoll.c
@@ -30,8 +30,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;
}