liburing.h: use helper for io_uring_prep_multishot_accept()
@@ -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);
