summaryrefslogtreecommitdiff
path: root/test/read-write.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/read-write.c')
-rw-r--r--test/read-write.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/read-write.c b/test/read-write.c
index 484a840..25fda8a 100644
--- a/test/read-write.c
+++ b/test/read-write.c
@@ -31,8 +31,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;
}