mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
sftp: Reformat sftp_read_and_dispatch()
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -521,13 +521,15 @@ static sftp_message sftp_get_message(sftp_packet packet)
|
||||
return msg;
|
||||
}
|
||||
|
||||
static int sftp_read_and_dispatch(sftp_session sftp) {
|
||||
static int sftp_read_and_dispatch(sftp_session sftp)
|
||||
{
|
||||
sftp_packet packet = NULL;
|
||||
sftp_message msg = NULL;
|
||||
|
||||
packet = sftp_packet_read(sftp);
|
||||
if (packet == NULL) {
|
||||
return -1; /* something nasty happened reading the packet */
|
||||
/* something nasty happened reading the packet */
|
||||
return -1;
|
||||
}
|
||||
|
||||
msg = sftp_get_message(packet);
|
||||
|
||||
Reference in New Issue
Block a user