aboutsummaryrefslogtreecommitdiff
path: root/src/channels.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-08-21 11:44:03 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-08-22 09:08:39 +0200
commitc2fc9ac956b4452066543f8d22758bb710b752b7 (patch)
tree6e1c176c690fccf5f11253e2dbe22520b9643a26 /src/channels.c
parent15473426c82f5c1f170b4b8ca74004b13a98986d (diff)
downloadlibssh-c2fc9ac956b4452066543f8d22758bb710b752b7.tar.gz
libssh-c2fc9ac956b4452066543f8d22758bb710b752b7.tar.xz
libssh-c2fc9ac956b4452066543f8d22758bb710b752b7.zip
channels: Fix timeout variable to match documentation
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/channels.c')
-rw-r--r--src/channels.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/channels.c b/src/channels.c
index beb2ae13..ba06a15f 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -2661,7 +2661,7 @@ int ssh_channel_read_timeout(ssh_channel channel,
void *dest,
uint32_t count,
int is_stderr,
- int timeout)
+ int timeout_ms)
{
ssh_session session;
ssh_buffer stdbuf;
@@ -2711,12 +2711,12 @@ int ssh_channel_read_timeout(ssh_channel channel,
ctx.buffer = stdbuf;
ctx.count = 1;
- if (timeout < 0) {
- timeout = SSH_TIMEOUT_DEFAULT;
+ if (timeout_ms < 0) {
+ timeout_ms = SSH_TIMEOUT_DEFAULT;
}
rc = ssh_handle_packets_termination(session,
- timeout,
+ timeout_ms,
ssh_channel_read_termination,
&ctx);
if (rc == SSH_ERROR){