]> granicus.if.org Git - curl/commitdiff
Fixed compiler warning on libc5.
authorDan Fandrich <dan@coneharvesters.com>
Mon, 19 Dec 2005 22:36:44 +0000 (22:36 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Mon, 19 Dec 2005 22:36:44 +0000 (22:36 +0000)
src/main.c

index 51e3413fbff9e90484e5c1018ac4cc4c69e70a35..38eb9f0a19eed4774b83f747e82ba6e2984e5f0e 100644 (file)
@@ -2950,7 +2950,7 @@ int my_trace(CURL *handle, curl_infotype type,
   (void)handle; /* prevent compiler warning */
 
   tv = curlx_tvnow();
-  now = localtime(&tv.tv_sec);  /* not multithread safe but we don't care */
+  now = localtime((time_t *)&tv.tv_sec);  /* not multithread safe but we don't care */
   if(config->tracetime)
     snprintf(timebuf, sizeof(timebuf), "%02d:%02d:%02d.%06d ",
              now->tm_hour, now->tm_min, now->tm_sec, tv.tv_usec);