wrap long lines
This commit is contained in:
parent
f0f4ba92f0
commit
0034a83e4c
10
src/packet.c
10
src/packet.c
@ -1133,10 +1133,9 @@ _libssh2_packet_burn(LIBSSH2_SESSION * session,
|
|||||||
/*
|
/*
|
||||||
* _libssh2_packet_requirev
|
* _libssh2_packet_requirev
|
||||||
*
|
*
|
||||||
* Loops _libssh2_transport_read() until one of a list of packet types requested is
|
* Loops _libssh2_transport_read() until one of a list of packet types
|
||||||
* available
|
* requested is available. SSH_DISCONNECT or a SOCKET_DISCONNECTED will cause
|
||||||
* SSH_DISCONNECT or a SOCKET_DISCONNECTED will cause a bailout
|
* a bailout. packet_types is a null terminated list of packet_type numbers
|
||||||
* packet_types is a null terminated list of packet_type numbers
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -1166,7 +1165,8 @@ _libssh2_packet_requirev(LIBSSH2_SESSION * session,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
if (ret <= 0) {
|
if (ret <= 0) {
|
||||||
long left = LIBSSH2_READ_TIMEOUT - (long)(time(NULL) - state->start);
|
long left = LIBSSH2_READ_TIMEOUT -
|
||||||
|
(long)(time(NULL) - state->start);
|
||||||
|
|
||||||
if (left <= 0) {
|
if (left <= 0) {
|
||||||
state->start = 0;
|
state->start = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user