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
1 changed files with 1 additions and 1 deletions

View File

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