freebsd-ports/ftp/curl/files/patch-lib::ftp.c
Kris Kennaway bc7de3495f Fix LP64 bugs and bump PORTREVISION. This still detects the bogus
gethostbyaddr_r() "implementation" in libc, which may be causing problems
in certain cases.
2003-06-16 02:50:28 +00:00

11 lines
464 B
C

--- lib/ftp.c.orig Tue May 13 23:31:00 2003
+++ lib/ftp.c Sun Jun 15 18:57:27 2003
@@ -2055,7 +2055,7 @@
struct tm buffer;
tm = (struct tm *)localtime_r(&data->info.filetime, &buffer);
#else
- tm = localtime((unsigned long *)&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",