From 81d403e207b23eeecd496f519021d61915947b8c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 26 Jun 2003 06:52:48 +0000 Subject: one typecast less for the localtime(), use CURLDEBUG instead of MALLOCDEBUG --- lib/ftp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/ftp.c b/lib/ftp.c index 6fa2982a0..cc9b2dbcf 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -94,7 +94,7 @@ #include /* The last #include file should be: */ -#ifdef MALLOCDEBUG +#ifdef CURLDEBUG #include "memdebug.h" #endif @@ -2061,7 +2061,7 @@ CURLcode ftp_perform(struct connectdata *conn, struct tm buffer; tm = (struct tm *)localtime_r(&data->info.filetime, &buffer); #else - tm = localtime((unsigned long *)&data->info.filetime); + tm = localtime(&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", -- cgit v1.2.3