Forgot a cast to remove warnings

(cherry picked from commit ac167c9077)
This commit is contained in:
Aris Adamantiadis
2011-05-27 13:36:55 +02:00
committed by Andreas Schneider
parent 5b645419fd
commit 615bc3b8f7

View File

@@ -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);