From 2e57dcb9d2c2826a3cfdad65f72e6003313eaa64 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 1 Dec 2023 12:55:12 +0000 Subject: [PATCH] example: fix indentation follow-up Fix long line and fix more indentations. Follow-up to 9e896e1b80911a53d6aabb322e034e6ca51b6898 --- example/direct_tcpip.c | 2 +- example/tcpip-forward.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/example/direct_tcpip.c b/example/direct_tcpip.c index 67ef4321..bb61468b 100644 --- a/example/direct_tcpip.c +++ b/example/direct_tcpip.c @@ -235,7 +235,7 @@ int main(int argc, char *argv[]) shost, sport, remote_desthost, remote_destport); channel = libssh2_channel_direct_tcpip_ex(session, remote_desthost, - remote_destport, shost, sport); + remote_destport, shost, sport); if(!channel) { fprintf(stderr, "Could not open the direct-tcpip channel.\n" "(Note that this can be a problem at the server." diff --git a/example/tcpip-forward.c b/example/tcpip-forward.c index 6faedc04..27801c53 100644 --- a/example/tcpip-forward.c +++ b/example/tcpip-forward.c @@ -195,7 +195,8 @@ int main(int argc, char *argv[]) remote_listenhost, remote_wantport); listener = libssh2_channel_forward_listen_ex(session, remote_listenhost, - remote_wantport, &remote_listenport, 1); + remote_wantport, + &remote_listenport, 1); if(!listener) { fprintf(stderr, "Could not start the tcpip-forward listener.\n" "(Note that this can be a problem at the server." @@ -237,7 +238,8 @@ int main(int argc, char *argv[]) } fprintf(stderr, "Forwarding connection from remote %s:%d to local %s:%d\n", - remote_listenhost, remote_listenport, local_destip, local_destport); + remote_listenhost, remote_listenport, + local_destip, local_destport); /* Must use non-blocking IO hereafter due to the current libssh2 API */ libssh2_session_set_blocking(session, 0);