mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 02:38:09 +09:00
Reformat the remaining socket functions.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@471 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -736,10 +736,15 @@ int ssh_socket_data_writable(struct socket *s){
|
||||
|
||||
int ssh_socket_get_status(struct socket *s) {
|
||||
int r = 0;
|
||||
if(s->data_to_read)
|
||||
|
||||
if (s->data_to_read) {
|
||||
r |= SSH_READ_PENDING;
|
||||
if(s->data_except)
|
||||
}
|
||||
|
||||
if (s->data_except) {
|
||||
r |= SSH_CLOSED_ERROR;
|
||||
}
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user