mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 09:19:24 +03:00
(sftpfs_open_socket): remove useless condition.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
87fb484c21
commit
9949fa74b6
@ -79,11 +79,7 @@ sftpfs_open_socket (struct vfs_s_super *super, GError ** mcerror)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sprintf (port, "%hu", (unsigned short) super->path_element->port) < 0)
|
sprintf (port, "%hu", (unsigned short) super->path_element->port);
|
||||||
{
|
|
||||||
mc_propagate_error (mcerror, -1, "%s", _("sftp: Invalid port value."));
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
tty_enable_interrupt_key (); /* clear the interrupt flag */
|
tty_enable_interrupt_key (); /* clear the interrupt flag */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user