summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/fsync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fsync.c b/test/fsync.c
index c9c2c5d..44264f4 100644
--- a/test/fsync.c
+++ b/test/fsync.c
@@ -93,7 +93,7 @@ static int test_barrier_fsync(struct io_uring *ring)
io_uring_prep_fsync(sqe, fd, IORING_FSYNC_DATASYNC);
sqe->user_data = 1;
- sqe->flags = IOSQE_IO_DRAIN;
+ io_uring_sqe_set_flags(sqe, IOSQE_IO_DRAIN);
ret = io_uring_submit(ring);
if (ret < 5) {