aboutsummaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-09-30 13:35:51 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-09-30 13:35:51 +0100
commitcf8ef63c4a5cbbc29f655a076b2e57c144ad8316 (patch)
tree31f945d0706f78232f58d10349815609ebe18186 /format.c
parentec9e03d09a20ca00dd9d96f7938a2d03a504b535 (diff)
downloadrtmux-cf8ef63c4a5cbbc29f655a076b2e57c144ad8316.tar.gz
rtmux-cf8ef63c4a5cbbc29f655a076b2e57c144ad8316.tar.bz2
rtmux-cf8ef63c4a5cbbc29f655a076b2e57c144ad8316.zip
Fix some warnings, GitHub issue 2382.
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 c7c6b12e..ced7b515 100644
--- a/format.c
+++ b/format.c
@@ -1372,7 +1372,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)
@@ -1396,10 +1395,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);