diff options
Diffstat (limited to 'lib/ftp.c')
-rw-r--r-- | lib/ftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2059,9 +2059,9 @@ CURLcode ftp_perform(struct connectdata *conn, struct tm *tm; #ifdef HAVE_LOCALTIME_R struct tm buffer; - tm = (struct tm *)localtime_r(&data->info.filetime, &buffer); + tm = (struct tm *)localtime_r((time_t *)&data->info.filetime, &buffer); #else - tm = localtime(&data->info.filetime); + tm = localtime((time_t *)&data->info.filetime); #endif /* format: "Tue, 15 Nov 1994 12:45:26 GMT" */ strftime(buf, BUFSIZE-1, "Last-Modified: %a, %d %b %Y %H:%M:%S GMT\r\n", |