diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-03-02 17:20:59 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-03-02 17:20:59 +0000 |
commit | 39a282bffce8ff255c691771f63b47f3d3bdf025 (patch) | |
tree | 9e01779f2e8d9ae6a90a864503155965673a82dc | |
parent | 29583004ce6d07c90148b03fbfae94f35378b6da (diff) |
moved a variable declaration to remove a compiler warnings with the MSVC
compiler, mentioned by Andi Jahja
-rw-r--r-- | lib/telnet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/telnet.c b/lib/telnet.c index a6b74bace..632992dfb 100644 --- a/lib/telnet.c +++ b/lib/telnet.c @@ -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"); |