1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-29 13:01:13 +03:00

Fixed build warnings in the exec example.

This commit is contained in:
Andreas Schneider
2010-03-29 22:38:21 +02:00
parent b5eb08ad09
commit d07aef725e

View File

@ -37,7 +37,9 @@ int main(void) {
while ((rc = channel_read(channel, buffer, sizeof(buffer), 0)) > 0) { while ((rc = channel_read(channel, buffer, sizeof(buffer), 0)) > 0) {
fwrite(buffer, 1, rc, stdout); if (fwrite(buffer, 1, rc, stdout) != (unsigned int) rc) {
return 1;
}
} }
if (rc < 0) { if (rc < 0) {