From 8a0aa17bcaccfcf8551c69f0f24406701e904a0e Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 22 Jul 2024 15:26:19 +0200 Subject: [PATCH] connector: Reformat Signed-off-by: Jakub Jelen Reviewed-by: Andreas Schneider --- src/connector.c | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/connector.c b/src/connector.c index 1803d8d5..46092fec 100644 --- a/src/connector.c +++ b/src/connector.c @@ -382,15 +382,13 @@ ssh_connector_fd_out_cb(ssh_connector connector) * * @returns 0 */ -static int ssh_connector_fd_cb(ssh_poll_handle p, +static int ssh_connector_fd_cb(UNUSED_PARAM(ssh_poll_handle p), socket_t fd, int revents, void *userdata) { ssh_connector connector = userdata; - (void)p; - if (revents & POLLERR) { ssh_connector_except(connector, fd); } else if((revents & (POLLIN|POLLHUP)) && fd == connector->in_fd) { @@ -420,7 +418,7 @@ static int ssh_connector_fd_cb(ssh_poll_handle p, * @returns Amount of data bytes consumed */ static int ssh_connector_channel_data_cb(ssh_session session, - ssh_channel channel, + UNUSED_PARAM(ssh_channel channel), void *data, uint32_t len, int is_stderr, @@ -430,10 +428,6 @@ static int ssh_connector_channel_data_cb(ssh_session session, int w; uint32_t window; - (void) session; - (void) channel; - (void) is_stderr; - SSH_LOG(SSH_LOG_TRACE,"connector data on channel"); if (is_stderr && !(connector->in_flags & SSH_CONNECTOR_STDERR)) { @@ -513,10 +507,11 @@ static int ssh_connector_channel_data_cb(ssh_session session, * * @returns Amount of data bytes consumed */ -static int ssh_connector_channel_write_wontblock_cb(ssh_session session, - ssh_channel channel, - uint32_t bytes, - void *userdata) +static int +ssh_connector_channel_write_wontblock_cb(ssh_session session, + UNUSED_PARAM(ssh_channel channel), + uint32_t bytes, + void *userdata) { ssh_connector connector = userdata; uint8_t buffer[CHUNKSIZE];