Got rid of some warnings
This commit is contained in:
parent
af67e9df33
commit
82375c1eeb
|
@ -974,9 +974,9 @@ static char const * _insert_date(time_t date)
|
|||
sixmonths = time(NULL) - 15552000;
|
||||
localtime_r(&date, &tm);
|
||||
if(date < sixmonths)
|
||||
len = strftime(buf, sizeof(buf), "%b %e %Y", &tm);
|
||||
len = strftime(buf, sizeof(buf), "%b %d %Y", &tm);
|
||||
else
|
||||
len = strftime(buf, sizeof(buf), "%b %e %H:%M", &tm);
|
||||
len = strftime(buf, sizeof(buf), "%b %d %H:%M", &tm);
|
||||
buf[len] = '\0';
|
||||
return buf;
|
||||
}
|
||||
|
|
|
@ -380,9 +380,9 @@ static char * _do_time(char * buf, size_t buf_cnt, time_t date)
|
|||
sixmonths = time(NULL) - 15552000;
|
||||
localtime_r(&date, &tm);
|
||||
if(date < sixmonths)
|
||||
strftime(buf, buf_cnt, "%b %e %Y", &tm);
|
||||
strftime(buf, buf_cnt, "%b %d %Y", &tm);
|
||||
else
|
||||
strftime(buf, buf_cnt, "%b %e %H:%M", &tm);
|
||||
strftime(buf, buf_cnt, "%b %d %H:%M", &tm);
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user