From: Daniel Stenberg Date: Mon, 30 Oct 2000 11:54:27 +0000 (+0000) Subject: typecasted the localtime_r() return code to not make it not warn even if the X-Git-Tag: curl-7_5~195 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6f7dcf3f22d06ea3f365e5f01f27ac9af9bd9d40;p=thirdparty%2Fcurl.git typecasted the localtime_r() return code to not make it not warn even if the function prototype is missting --- diff --git a/lib/getdate.y b/lib/getdate.y index 8c02832fe0..0bf30c43ba 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -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