mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Fix some warnings, GitHub issue 2382.
This commit is contained in:
5
format.c
5
format.c
@ -1373,7 +1373,6 @@ format_pretty_time(time_t t)
|
||||
struct tm now_tm, tm;
|
||||
time_t now, age;
|
||||
char s[6];
|
||||
int m;
|
||||
|
||||
time(&now);
|
||||
if (now < t)
|
||||
@ -1397,10 +1396,6 @@ format_pretty_time(time_t t)
|
||||
}
|
||||
|
||||
/* Last 12 months. */
|
||||
if (now_tm.tm_mon == 0)
|
||||
m = 11;
|
||||
else
|
||||
m = now_tm.tm_mon - 1;
|
||||
if ((tm.tm_year == now_tm.tm_year && tm.tm_mon < now_tm.tm_mon) ||
|
||||
(tm.tm_year == now_tm.tm_year - 1 && tm.tm_mon > now_tm.tm_mon)) {
|
||||
strftime(s, sizeof s, "%d%b", &tm);
|
||||
|
Reference in New Issue
Block a user