diff options
author | Jakub Jelen <jjelen@redhat.com> | 2019-09-17 15:08:29 +0200 |
---|---|---|
committer | Jakub Jelen <jjelen@redhat.com> | 2019-09-24 16:04:52 +0200 |
commit | 3cf2b41f5eafacc92ac8a04d887ca448af88fab2 (patch) | |
tree | 6038cb7e63ca5245281bec971b03a2fb8a3c6e2b | |
parent | 223cc9623992db8f30918abf310aaa7528f83f82 (diff) | |
download | libssh-3cf2b41f5eafacc92ac8a04d887ca448af88fab2.tar.gz libssh-3cf2b41f5eafacc92ac8a04d887ca448af88fab2.tar.xz libssh-3cf2b41f5eafacc92ac8a04d887ca448af88fab2.zip |
channels: Do not use deprecated functions in the example code
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
-rw-r--r-- | src/channels.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/channels.c b/src/channels.c index 71d39c62..15f232e1 100644 --- a/src/channels.c +++ b/src/channels.c @@ -2513,12 +2513,12 @@ error: * * Example: @code - rc = channel_request_exec(channel, "ps aux"); + rc = ssh_channel_request_exec(channel, "ps aux"); if (rc > 0) { return -1; } - while ((rc = channel_read(channel, buffer, sizeof(buffer), 0)) > 0) { + while ((rc = ssh_channel_read(channel, buffer, sizeof(buffer), 0)) > 0) { if (fwrite(buffer, 1, rc, stdout) != (unsigned int) rc) { return -1; } |