diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-05-27 13:36:55 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-05-27 13:36:55 +0200 |
commit | ac167c90775b757adefb9f3ec6b3cfbcdef78c1a (patch) | |
tree | 7d2ad720fe70a67255c8bca397f1cf739e512871 | |
parent | c84380bad55dba3cb06486dc7f19c0ea6705a060 (diff) | |
download | libssh-ac167c90775b757adefb9f3ec6b3cfbcdef78c1a.tar.gz libssh-ac167c90775b757adefb9f3ec6b3cfbcdef78c1a.tar.xz libssh-ac167c90775b757adefb9f3ec6b3cfbcdef78c1a.zip |
Forgot a cast to remove warnings
-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 857ad524..221f525d 100644 --- a/src/channels.c +++ b/src/channels.c @@ -2523,8 +2523,8 @@ int ssh_channel_read_nonblocking(ssh_channel channel, void *dest, uint32_t count return to_read; /* may be an error code */ } - if (to_read > count) { - to_read = count; + if (to_read > (int)count) { + to_read = (int)count; } rc = ssh_channel_read(channel, dest, to_read, is_stderr); |