1
0
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:
Daniel Stenberg 2000-10-30 11:54:27 +00:00
parent 0cff279063
commit 6f7dcf3f22

View File

@ -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