wrap long lines

This commit is contained in:
Daniel Stenberg 2010-03-03 23:44:24 +01:00
parent f0f4ba92f0
commit 0034a83e4c

View File

@ -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;