diff options
author | Jens Axboe <axboe@kernel.dk> | 2024-03-21 19:49:07 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-03-21 19:49:07 -0600 |
commit | 3ebaa63caa7edae378536b67f9a21096981c541e (patch) | |
tree | e8fe927e04fb5a01280a20b9a812cf68adabdbfa | |
parent | 076c2f6d14a4bb8eb69844267f874fbf9e49f14d (diff) | |
download | liburing-3ebaa63caa7edae378536b67f9a21096981c541e.tar.gz |
examples/proxy: remove dead parameters
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | examples/proxy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/proxy.c b/examples/proxy.c index 114a3d35..c18a4df8 100644 --- a/examples/proxy.c +++ b/examples/proxy.c @@ -1725,7 +1725,7 @@ static void open_socket(struct conn *c) /* * Start of connection, we got our in descriptor. */ -static int handle_fd_pass(struct io_uring *ring, struct io_uring_cqe *cqe) +static int handle_fd_pass(struct io_uring_cqe *cqe) { struct conn *c = cqe_to_conn(cqe); int fd = cqe_to_fd(cqe); @@ -1736,7 +1736,7 @@ static int handle_fd_pass(struct io_uring *ring, struct io_uring_cqe *cqe) return 0; } -static int handle_stop(struct io_uring *ring, struct io_uring_cqe *cqe) +static int handle_stop(struct io_uring_cqe *cqe) { struct conn *c = cqe_to_conn(cqe); @@ -1794,10 +1794,10 @@ static int handle_cqe(struct io_uring *ring, struct io_uring_cqe *cqe) ret = handle_close(ring, cqe); break; case __FD_PASS: - ret = handle_fd_pass(ring, cqe); + ret = handle_fd_pass(cqe); break; case __STOP: - ret = handle_stop(ring, cqe); + ret = handle_stop(cqe); break; case __NOP: ret = 0; |