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

compiler, mentioned by Andi Jahja
This commit is contained in:
Daniel Stenberg 2003-03-02 17:20:59 +00:00
parent 29583004ce
commit 39a282bffc
1 changed files with 1 additions and 1 deletions

View File

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