channel: Reformat ssh_channel_close()
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
родитель
e4e51ccc13
Коммит
0ba10870d1
@ -1136,7 +1136,8 @@ error:
|
|||||||
* @see ssh_channel_free()
|
* @see ssh_channel_free()
|
||||||
* @see ssh_channel_is_eof()
|
* @see ssh_channel_is_eof()
|
||||||
*/
|
*/
|
||||||
int ssh_channel_close(ssh_channel channel){
|
int ssh_channel_close(ssh_channel channel)
|
||||||
|
{
|
||||||
ssh_session session;
|
ssh_session session;
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
|
|
||||||
@ -1174,8 +1175,9 @@ int ssh_channel_close(ssh_channel channel){
|
|||||||
}
|
}
|
||||||
|
|
||||||
rc = ssh_channel_flush(channel);
|
rc = ssh_channel_flush(channel);
|
||||||
if(rc == SSH_ERROR)
|
if(rc == SSH_ERROR) {
|
||||||
goto error;
|
goto error;
|
||||||
|
}
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
error:
|
error:
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user