mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-06-05 01:42:10 +03:00
example: Fix a build warning.
This commit is contained in:
parent
c5782b7486
commit
c078e36219
@ -295,7 +295,10 @@ int main(int argc, char **argv){
|
||||
return 1;
|
||||
}
|
||||
if (buf[0] == '\x0d') {
|
||||
write(1, "\n", 1);
|
||||
if (write(1, "\n", 1) < 0) {
|
||||
printf("error writing to buffer\n");
|
||||
return 1;
|
||||
}
|
||||
ssh_channel_write(chan, "\n", 1);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user