Fix type for io_uring_prep_socket_direct()

The flags should always go last.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Jens Axboe
2022-05-27 14:13:17 -06:00
parent 4155ada3fe
commit ec96603310
+2 -2
View File
@@ -828,8 +828,8 @@ static inline void io_uring_prep_socket(struct io_uring_sqe *sqe, int domain,
static inline void io_uring_prep_socket_direct(struct io_uring_sqe *sqe,
int domain, int type,
int protocol,
unsigned int flags,
unsigned file_index)
unsigned file_index,
unsigned int flags)
{
io_uring_prep_rw(IORING_OP_SOCKET, sqe, domain, NULL, protocol, type);
sqe->rw_flags = flags;