aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-03-02 17:20:59 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-03-02 17:20:59 +0000
commit39a282bffce8ff255c691771f63b47f3d3bdf025 (patch)
tree9e01779f2e8d9ae6a90a864503155965673a82dc
parent29583004ce6d07c90148b03fbfae94f35378b6da (diff)
moved a variable declaration to remove a compiler warnings with the MSVC
compiler, mentioned by Andi Jahja
-rw-r--r--lib/telnet.c2
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");