summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2019-07-08 14:58:43 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-07-08 14:58:59 +0200
commitb5a8547d91366f0fd171cb3956375f3db181c53f (patch)
treebbb3defed00d264c0e4a27907f6818c3b5771d62
parent1a26c57af27417069a614ac6b6ea73bb5d0128f5 (diff)
downloadlibssh-b5a8547d91366f0fd171cb3956375f3db181c53f.tar.gz
libssh-b5a8547d91366f0fd171cb3956375f3db181c53f.tar.xz
libssh-b5a8547d91366f0fd171cb3956375f3db181c53f.zip
exmples: Use SSH_CONNECTOR_STDINOUT in client example
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
-rw-r--r--examples/ssh_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/ssh_client.c b/examples/ssh_client.c
index 7675e919..2865c2da 100644
--- a/examples/ssh_client.c
+++ b/examples/ssh_client.c
@@ -203,14 +203,14 @@ static void select_loop(ssh_session session,ssh_channel channel)
/* stdin */
connector_in = ssh_connector_new(session);
- ssh_connector_set_out_channel(connector_in, channel, SSH_CONNECTOR_STDOUT);
+ ssh_connector_set_out_channel(connector_in, channel, SSH_CONNECTOR_STDINOUT);
ssh_connector_set_in_fd(connector_in, 0);
ssh_event_add_connector(event, connector_in);
/* stdout */
connector_out = ssh_connector_new(session);
ssh_connector_set_out_fd(connector_out, 1);
- ssh_connector_set_in_channel(connector_out, channel, SSH_CONNECTOR_STDOUT);
+ ssh_connector_set_in_channel(connector_out, channel, SSH_CONNECTOR_STDINOUT);
ssh_event_add_connector(event, connector_out);
/* stderr */