2009-02-05 Ralf Corsépius <ralf.corsepius@rtems.org>

* ftpd/ftpd.c: Change SIX_MONTHS to time_t.
This commit is contained in:
Ralf Corsepius
2009-02-05 05:22:38 +00:00
parent 8ffe14563e
commit 5e7c1849be
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
2009-02-05 Ralf Corsépius <ralf.corsepius@rtems.org>
* ftpd/ftpd.c: Change SIX_MONTHS to time_t.
2009-02-04 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/lib/ftpfs.c: Enable write and mount filesystem

View File

@@ -1196,7 +1196,7 @@ send_dirline(int s, int wide, time_t curTime, char const* path,
struct tm bt;
time_t tf = stat_buf.st_mtime;
enum { SIZE = 80 };
uint32_t SIX_MONTHS = (365L*24L*60L*60L)/2L;
time_t SIX_MONTHS = (365L*24L*60L*60L)/2L;
char timeBuf[SIZE];
gmtime_r(&tf, &bt);
if(curTime > tf + SIX_MONTHS || tf > curTime + SIX_MONTHS)