Fixed build warnings in the exec example.
Этот коммит содержится в:
родитель
b5eb08ad09
Коммит
d07aef725e
@ -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) {
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user