mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-31 00:03:07 +03:00
Fixed build warning in the sshd example.
This commit is contained in:
@ -258,7 +258,10 @@ int main(int argc, char **argv){
|
|||||||
do{
|
do{
|
||||||
i=channel_read_buffer(chan,buf,0,0);
|
i=channel_read_buffer(chan,buf,0,0);
|
||||||
if(i>0)
|
if(i>0)
|
||||||
write(1,buffer_get(buf),buffer_get_len(buf));
|
if (write(1,buffer_get(buf),buffer_get_len(buf)) < 0) {
|
||||||
|
printf("error writint to buffer\n");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
} while (i>0);
|
} while (i>0);
|
||||||
buffer_free(buf);
|
buffer_free(buf);
|
||||||
ssh_disconnect(session);
|
ssh_disconnect(session);
|
||||||
|
Reference in New Issue
Block a user