aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-10-30 11:54:27 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-10-30 11:54:27 +0000
commit6f7dcf3f22d06ea3f365e5f01f27ac9af9bd9d40 (patch)
tree3d63e982fddfae6908493e5116457b021d7dfc8c /lib
parent0cff27906300a046e3569d7b32887d681fc8ea62 (diff)
typecasted the localtime_r() return code to not make it not warn even if the
function prototype is missting
Diffstat (limited to 'lib')
-rw-r--r--lib/getdate.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/getdate.y b/lib/getdate.y
index 8c02832fe..0bf30c43b 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