]> granicus.if.org Git - curl/commitdiff
moved a variable declaration to remove a compiler warnings with the MSVC
authorDaniel Stenberg <daniel@haxx.se>
Sun, 2 Mar 2003 17:20:59 +0000 (17:20 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 2 Mar 2003 17:20:59 +0000 (17:20 +0000)
compiler, mentioned by Andi Jahja

lib/telnet.c

index a6b74baceccb3b7b11dc69f4a8585ba999e40aca..632992dfb05f99b8e0a69a32696c0bfdc3444d93 100644 (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");