aboutsummaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-09-16 20:01:19 +0100
committerThomas Adam <thomas@xteddy.org>2020-09-16 20:01:19 +0100
commitc3e1b841f99383dfd1f9a9535c71b745e89d43fd (patch)
treee2e728cfe898902ac0ea603f00ee5fe8c68a5d4d /format.c
parent3c1f34c20809c33508e4e9f47e0fc585ee55d83f (diff)
parent869c0e860fcf0851ef1751ca9187599913ca056a (diff)
downloadrtmux-c3e1b841f99383dfd1f9a9535c71b745e89d43fd.tar.gz
rtmux-c3e1b841f99383dfd1f9a9535c71b745e89d43fd.tar.bz2
rtmux-c3e1b841f99383dfd1f9a9535c71b745e89d43fd.zip
Merge branch 'obsd-master'
Diffstat (limited to 'format.c')
-rw-r--r--format.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/format.c b/format.c
index 98757b2f..b88120cb 100644
--- a/format.c
+++ b/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);