summaryrefslogtreecommitdiff
path: root/test/sq-poll-share.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/sq-poll-share.c')
-rw-r--r--test/sq-poll-share.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/sq-poll-share.c b/test/sq-poll-share.c
index 393178b..f74278e 100644
--- a/test/sq-poll-share.c
+++ b/test/sq-poll-share.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;
}