aboutsummaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authornicm <nicm>2020-09-16 18:37:55 +0000
committernicm <nicm>2020-09-16 18:37:55 +0000
commit869c0e860fcf0851ef1751ca9187599913ca056a (patch)
tree025c03510bf75ad47830d172b7f83cfe79f1ff3a /format.c
parent1fed7e84a3d65c8fbfbb321b84236ccab7265d46 (diff)
downloadrtmux-869c0e860fcf0851ef1751ca9187599913ca056a.tar.gz
rtmux-869c0e860fcf0851ef1751ca9187599913ca056a.tar.bz2
rtmux-869c0e860fcf0851ef1751ca9187599913ca056a.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 bf3ba93d..66107b68 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);