aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/channels.c4
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;
}