mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
moved a variable declaration to remove a compiler warnings with the MSVC
compiler, mentioned by Andi Jahja
This commit is contained in:
parent
29583004ce
commit
39a282bffc
@ -1050,7 +1050,6 @@ CURLcode Curl_telnet(struct connectdata *conn)
|
|||||||
char *buf = data->state.buffer;
|
char *buf = data->state.buffer;
|
||||||
ssize_t nread;
|
ssize_t nread;
|
||||||
struct TELNET *tn;
|
struct TELNET *tn;
|
||||||
struct timeval now; /* current time */
|
|
||||||
|
|
||||||
code = init_telnet(conn);
|
code = init_telnet(conn);
|
||||||
if(code)
|
if(code)
|
||||||
@ -1205,6 +1204,7 @@ CURLcode Curl_telnet(struct connectdata *conn)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(data->set.timeout) {
|
if(data->set.timeout) {
|
||||||
|
struct timeval now; /* current time */
|
||||||
now = Curl_tvnow();
|
now = Curl_tvnow();
|
||||||
if(Curl_tvdiff(now, conn->created)/1000 >= data->set.timeout) {
|
if(Curl_tvdiff(now, conn->created)/1000 >= data->set.timeout) {
|
||||||
failf(data, "Time-out");
|
failf(data, "Time-out");
|
||||||
|
Loading…
Reference in New Issue
Block a user