mirror of
https://github.com/curl/curl.git
synced 2026-06-02 04:24:15 +03: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
1 changed files with 1 additions and 1 deletions
|
|
@ -1050,7 +1050,6 @@ CURLcode Curl_telnet(struct connectdata *conn)
|
|||
char *buf = data->state.buffer;
|
||||
ssize_t nread;
|
||||
struct TELNET *tn;
|
||||
struct timeval now; /* current time */
|
||||
|
||||
code = init_telnet(conn);
|
||||
if(code)
|
||||
|
|
@ -1205,6 +1204,7 @@ CURLcode Curl_telnet(struct connectdata *conn)
|
|||
}
|
||||
}
|
||||
if(data->set.timeout) {
|
||||
struct timeval now; /* current time */
|
||||
now = Curl_tvnow();
|
||||
if(Curl_tvdiff(now, conn->created)/1000 >= data->set.timeout) {
|
||||
failf(data, "Time-out");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue