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:
committed by
Andreas Schneider
parent
8418a1131e
commit
0b4c2a8e62
@@ -450,7 +450,8 @@ void ssh_silent_disconnect(ssh_session session) {
|
|||||||
*
|
*
|
||||||
* @param[in] blocking Zero for nonblocking mode.
|
* @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) {
|
if (session == NULL) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -464,8 +465,9 @@ void ssh_set_blocking(ssh_session session, int blocking) {
|
|||||||
* @returns 0 if the session is nonblocking,
|
* @returns 0 if the session is nonblocking,
|
||||||
* @returns 1 if the functions may block.
|
* @returns 1 if the functions may block.
|
||||||
*/
|
*/
|
||||||
int ssh_is_blocking(ssh_session session){
|
int ssh_is_blocking(ssh_session session)
|
||||||
return (session->flags&SSH_SESSION_FLAG_BLOCKING) ? 1 : 0;
|
{
|
||||||
|
return (session->flags & SSH_SESSION_FLAG_BLOCKING) ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Waits until the output socket is empty */
|
/* Waits until the output socket is empty */
|
||||||
|
|||||||
Reference in New Issue
Block a user