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:
@ -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) {
|
||||||
|
Reference in New Issue
Block a user