diff options
author | Jens Axboe <axboe@kernel.dk> | 2022-06-01 08:16:08 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-06-01 08:16:08 -0600 |
commit | a12f209d0133b71648da3f0d7d71997b35f75359 (patch) | |
tree | 16a415aa33f6507eb2b2e18469312f2579760108 | |
parent | 23598884f2d45a6f02525ae5d95a780e2352f49c (diff) | |
download | liburing-a12f209d0133b71648da3f0d7d71997b35f75359.tar.gz |
test/socket: fix argument order for socket prep
Fixes: 971f3cf0f134 ("Fix type for io_uring_prep_socket_direct()")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | test/socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/socket.c b/test/socket.c index 131a3a6..6a3ea09 100644 --- a/test/socket.c +++ b/test/socket.c @@ -254,8 +254,8 @@ static int do_send(int socket_direct, int alloc) unsigned file_index = 0; if (alloc) file_index = IORING_FILE_INDEX_ALLOC - 1; - io_uring_prep_socket_direct(sqe, AF_INET, SOCK_DGRAM, 0, 0, - file_index); + io_uring_prep_socket_direct(sqe, AF_INET, SOCK_DGRAM, 0, + file_index, 0); } else { io_uring_prep_socket(sqe, AF_INET, SOCK_DGRAM, 0, 0); } |