mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 07:38:49 -05:00
Fixed compiler warning on libc5.
This commit is contained in:
parent
898bb397b1
commit
80a8fb98db
@ -2950,7 +2950,7 @@ int my_trace(CURL *handle, curl_infotype type,
|
|||||||
(void)handle; /* prevent compiler warning */
|
(void)handle; /* prevent compiler warning */
|
||||||
|
|
||||||
tv = curlx_tvnow();
|
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)
|
if(config->tracetime)
|
||||||
snprintf(timebuf, sizeof(timebuf), "%02d:%02d:%02d.%06d ",
|
snprintf(timebuf, sizeof(timebuf), "%02d:%02d:%02d.%06d ",
|
||||||
now->tm_hour, now->tm_min, now->tm_sec, tv.tv_usec);
|
now->tm_hour, now->tm_min, now->tm_sec, tv.tv_usec);
|
||||||
|
Loading…
Reference in New Issue
Block a user