mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
bind: Reformat ssh_bind_get_poll()
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
15
src/bind.c
15
src/bind.c
@@ -343,12 +343,17 @@ static int ssh_bind_poll_callback(ssh_poll_handle sshpoll,
|
|||||||
* @param sshbind the ssh_bind object
|
* @param sshbind the ssh_bind object
|
||||||
* @returns a ssh_poll handle suitable for operation
|
* @returns a ssh_poll handle suitable for operation
|
||||||
*/
|
*/
|
||||||
ssh_poll_handle ssh_bind_get_poll(ssh_bind sshbind){
|
ssh_poll_handle ssh_bind_get_poll(ssh_bind sshbind)
|
||||||
if(sshbind->poll)
|
{
|
||||||
|
if (sshbind->poll) {
|
||||||
|
return sshbind->poll;
|
||||||
|
}
|
||||||
|
sshbind->poll = ssh_poll_new(sshbind->bindfd,
|
||||||
|
POLLIN,
|
||||||
|
ssh_bind_poll_callback,
|
||||||
|
sshbind);
|
||||||
|
|
||||||
return sshbind->poll;
|
return sshbind->poll;
|
||||||
sshbind->poll=ssh_poll_new(sshbind->bindfd,POLLIN,
|
|
||||||
ssh_bind_poll_callback,sshbind);
|
|
||||||
return sshbind->poll;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ssh_bind_set_blocking(ssh_bind sshbind, int blocking) {
|
void ssh_bind_set_blocking(ssh_bind sshbind, int blocking) {
|
||||||
|
|||||||
Reference in New Issue
Block a user