ERR: Remove warning on FreeBSD
This commit is contained in:
parent
ddf848ac66
commit
9400400746
@ -2001,7 +2001,7 @@ CURLcode ftp_perform(struct connectdata *conn,
|
|||||||
struct tm *tm;
|
struct tm *tm;
|
||||||
#ifdef HAVE_LOCALTIME_R
|
#ifdef HAVE_LOCALTIME_R
|
||||||
struct tm buffer;
|
struct tm buffer;
|
||||||
tm = (struct tm *)localtime_r(&data->info.filetime, &buffer);
|
tm = (struct tm *)localtime_r((time_t*)&data->info.filetime, &buffer);
|
||||||
#else
|
#else
|
||||||
tm = localtime((time_t *)&data->info.filetime);
|
tm = localtime((time_t *)&data->info.filetime);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user