Skip to content
Snippets Groups Projects
Commit 39a282bf authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

moved a variable declaration to remove a compiler warnings with the MSVC

compiler, mentioned by Andi Jahja
parent 29583004
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment