summaryrefslogtreecommitdiff
path: root/src/include/liburing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/liburing.h')
-rw-r--r--src/include/liburing.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/include/liburing.h b/src/include/liburing.h
index 9065555..8e69167 100644
--- a/src/include/liburing.h
+++ b/src/include/liburing.h
@@ -506,9 +506,7 @@ static inline void io_uring_prep_multishot_accept(struct io_uring_sqe *sqe,
int fd, struct sockaddr *addr,
socklen_t *addrlen, int flags)
{
- io_uring_prep_rw(IORING_OP_ACCEPT, sqe, fd, addr, 0,
- (__u64) (unsigned long) addrlen);
- sqe->accept_flags = (__u32) flags;
+ io_uring_prep_accept(sqe, fd, addr, addrlen, flags);
sqe->ioprio |= IORING_ACCEPT_MULTISHOT;
}
@@ -581,7 +579,6 @@ static inline void io_uring_prep_openat_direct(struct io_uring_sqe *sqe,
__io_uring_set_target_fixed_file(sqe, file_index);
}
-
static inline void io_uring_prep_close(struct io_uring_sqe *sqe, int fd)
{
io_uring_prep_rw(IORING_OP_CLOSE, sqe, fd, NULL, 0, 0);