diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-09-16 18:37:56 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-09-16 18:37:56 +0000 |
commit | 4f63105a8cc79d5502081e3bc45c140cfe5a37f5 (patch) | |
tree | fb00b4c4ad8129b7c6496649b4917a35d26d1739 /usr.bin/tmux/format.c | |
parent | 9124c47097f34475240175f8ab1bbfc8e8da589c (diff) |
Fix some warnings, GitHub issue 2382.
Diffstat (limited to 'usr.bin/tmux/format.c')
-rw-r--r-- | usr.bin/tmux/format.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.bin/tmux/format.c b/usr.bin/tmux/format.c index 7217e10a019..1c1a2a82ac9 100644 --- a/usr.bin/tmux/format.c +++ b/usr.bin/tmux/format.c @@ -1,4 +1,4 @@ -/* $OpenBSD: format.c,v 1.261 2020/08/27 06:55:54 nicm Exp $ */ +/* $OpenBSD: format.c,v 1.262 2020/09/16 18:37:55 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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); |