Skip to content
Snippets Groups Projects
Commit 6f7dcf3f authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

typecasted the localtime_r() return code to not make it not warn even if the

function prototype is missting
parent 0cff2790
No related branches found
No related tags found
No related merge requests found
......@@ -934,7 +934,7 @@ curl_getdate (const char *p, const time_t *now)
yyInput = p;
Start = now ? *now : time ((time_t *) NULL);
#ifdef HAVE_LOCALTIME_R
tmp = localtime_r(&Start, &keeptime);
tmp = (struct tm *)localtime_r(&Start, &keeptime);
#else
tmp = localtime (&Start);
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment