summaryrefslogtreecommitdiff
path: root/test/500f9fbadef8-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/500f9fbadef8-test.c')
-rw-r--r--test/500f9fbadef8-test.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/500f9fbadef8-test.c b/test/500f9fbadef8-test.c
index 9ebff43..51081c5 100644
--- a/test/500f9fbadef8-test.c
+++ b/test/500f9fbadef8-test.c
@@ -10,6 +10,7 @@
#include <string.h>
#include <fcntl.h>
+#include "helpers.h"
#include "liburing.h"
#define BLOCKS 4096
@@ -28,10 +29,7 @@ int main(int argc, char *argv[])
if (argc > 1)
return 0;
- if (posix_memalign(&iov.iov_base, 4096, 4096)) {
- fprintf(stderr, "memalign failed\n");
- return 1;
- }
+ io_uring_posix_memalign(&iov.iov_base, 4096, 4096);
iov.iov_len = 4096;
ret = io_uring_queue_init(1, &ring, IORING_SETUP_IOPOLL);