diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-05-27 13:36:55 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-05-27 14:19:54 +0200 |
commit | 615bc3b8f7b34805f5a67c3d9b91f204a84f4d86 (patch) | |
tree | 986c48eb4e8013daaf182c8e34747724518f03db | |
parent | 5b645419fdf7b7c174513547a3091d4359de40dd (diff) | |
download | libssh-615bc3b8f7b34805f5a67c3d9b91f204a84f4d86.tar.gz libssh-615bc3b8f7b34805f5a67c3d9b91f204a84f4d86.tar.xz libssh-615bc3b8f7b34805f5a67c3d9b91f204a84f4d86.zip |
Forgot a cast to remove warnings
(cherry picked from commit ac167c90775b757adefb9f3ec6b3cfbcdef78c1a)
-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 693cfdf5..92c09ec5 100644 --- a/src/channels.c +++ b/src/channels.c @@ -2416,8 +2416,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); |