mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
typecasted the localtime_r() return code to not make it not warn even if the
function prototype is missting
This commit is contained in:
parent
0cff279063
commit
6f7dcf3f22
@ -934,7 +934,7 @@ curl_getdate (const char *p, const time_t *now)
|
|||||||
yyInput = p;
|
yyInput = p;
|
||||||
Start = now ? *now : time ((time_t *) NULL);
|
Start = now ? *now : time ((time_t *) NULL);
|
||||||
#ifdef HAVE_LOCALTIME_R
|
#ifdef HAVE_LOCALTIME_R
|
||||||
tmp = localtime_r(&Start, &keeptime);
|
tmp = (struct tm *)localtime_r(&Start, &keeptime);
|
||||||
#else
|
#else
|
||||||
tmp = localtime (&Start);
|
tmp = localtime (&Start);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user