]> granicus.if.org Git - curl/commitdiff
typecasted the localtime_r() return code to not make it not warn even if the
authorDaniel Stenberg <daniel@haxx.se>
Mon, 30 Oct 2000 11:54:27 +0000 (11:54 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 30 Oct 2000 11:54:27 +0000 (11:54 +0000)
function prototype is missting

lib/getdate.y

index 8c02832fe0317867cafe9591d883f1a2c341bb5b..0bf30c43bac836e984ff1c3948b37eb92367f9d2 100644 (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