1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-03 13:31:11 +03:00

session: Reformat ssh_{set,is}_blocking

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Jakub Jelen
2018-11-16 15:31:20 +01:00
committed by Andreas Schneider
parent 8418a1131e
commit 0b4c2a8e62

View File

@@ -450,7 +450,8 @@ void ssh_silent_disconnect(ssh_session session) {
*
* @param[in] blocking Zero for nonblocking mode.
*/
void ssh_set_blocking(ssh_session session, int blocking) {
void ssh_set_blocking(ssh_session session, int blocking)
{
if (session == NULL) {
return;
}
@@ -464,8 +465,9 @@ void ssh_set_blocking(ssh_session session, int blocking) {
* @returns 0 if the session is nonblocking,
* @returns 1 if the functions may block.
*/
int ssh_is_blocking(ssh_session session){
return (session->flags&SSH_SESSION_FLAG_BLOCKING) ? 1 : 0;
int ssh_is_blocking(ssh_session session)
{
return (session->flags & SSH_SESSION_FLAG_BLOCKING) ? 1 : 0;
}
/* Waits until the output socket is empty */