1
0
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:
Andreas Schneider 2012-10-07 10:56:10 +02:00
parent c5782b7486
commit c078e36219

View File

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