]> granicus.if.org Git - curl/commitdiff
one typecast less for the localtime(), use CURLDEBUG instead of MALLOCDEBUG
authorDaniel Stenberg <daniel@haxx.se>
Thu, 26 Jun 2003 06:52:48 +0000 (06:52 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 26 Jun 2003 06:52:48 +0000 (06:52 +0000)
lib/ftp.c

index 6fa2982a0c1d1fcf7e513d4bc6084c3bf0ef7c87..cc9b2dbcf280d33e51348d73ba4007e4bfa723bb 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -94,7 +94,7 @@
 #include <curl/mprintf.h>
 
 /* 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",