Got rid of some warnings

This commit is contained in:
Pierre Pronchery 2010-10-03 22:14:08 +00:00
parent af67e9df33
commit 82375c1eeb
2 changed files with 4 additions and 4 deletions

View File

@ -974,9 +974,9 @@ static char const * _insert_date(time_t date)
sixmonths = time(NULL) - 15552000; sixmonths = time(NULL) - 15552000;
localtime_r(&date, &tm); localtime_r(&date, &tm);
if(date < sixmonths) if(date < sixmonths)
len = strftime(buf, sizeof(buf), "%b %e %Y", &tm); len = strftime(buf, sizeof(buf), "%b %d %Y", &tm);
else else
len = strftime(buf, sizeof(buf), "%b %e %H:%M", &tm); len = strftime(buf, sizeof(buf), "%b %d %H:%M", &tm);
buf[len] = '\0'; buf[len] = '\0';
return buf; return buf;
} }

View File

@ -380,9 +380,9 @@ static char * _do_time(char * buf, size_t buf_cnt, time_t date)
sixmonths = time(NULL) - 15552000; sixmonths = time(NULL) - 15552000;
localtime_r(&date, &tm); localtime_r(&date, &tm);
if(date < sixmonths) if(date < sixmonths)
strftime(buf, buf_cnt, "%b %e %Y", &tm); strftime(buf, buf_cnt, "%b %d %Y", &tm);
else else
strftime(buf, buf_cnt, "%b %e %H:%M", &tm); strftime(buf, buf_cnt, "%b %d %H:%M", &tm);
return buf; return buf;
} }