Change SIX_MONTHS to time_t.

This commit is contained in:
Ralf Corsepius
2009-02-05 05:19:16 +00:00
parent c37c919cdd
commit dc936a46ca

View File

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