diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-07-30 07:22:28 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-07-30 07:22:28 +0000 |
commit | 1c35cbcc07f89913ed1025c05ab3dbd8683b7f01 (patch) | |
tree | ce9241aa139c2bc0336fbc860ced850fa67a0294 /lib/ftp.c | |
parent | 5f8989a436b508faf0b439778f1e05550a7b363d (diff) |
Reverted the 'filetime' struct field back to a 'long' as time_t is sometimes
unsigned and we want this to be able to hold -1 for illegal/unset values.
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", |