From 12fd19f928dba11ef3e695687fe0af9ac62cd0da Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Sun, 24 Feb 2019 16:39:12 +0000 Subject: [PATCH] lowercase variable Local variables should be lowercase. --- hdrline.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/hdrline.c b/hdrline.c index 1131e2c11..76f9945e8 100644 --- a/hdrline.c +++ b/hdrline.c @@ -666,15 +666,15 @@ static const char *index_format_str(char *buf, size_t buflen, size_t col, int co { const char *cp = NULL; struct tm *tm = NULL; - time_t T; + time_t now; int j = 0; if (optional && ((op == '[') || (op == '('))) { char *is = NULL; - T = time(NULL); - tm = localtime(&T); - T -= (op == '(') ? e->received : e->date_sent; + now = time(NULL); + tm = localtime(&now); + now -= (op == '(') ? e->received : e->date_sent; is = (char *) prec; int invert = 0; @@ -756,7 +756,7 @@ static const char *index_format_str(char *buf, size_t buflen, size_t col, int co if (j < 0) j *= -1; - if (((T > j) || (T < (-1 * j))) ^ invert) + if (((now > j) || (now < (-1 * j))) ^ invert) optional = 0; break; } @@ -819,18 +819,18 @@ static const char *index_format_str(char *buf, size_t buflen, size_t col, int co tm = localtime(&e->received); else if (op == '<') { - T = time(NULL); - tm = localtime(&T); + now = time(NULL); + tm = localtime(&now); } else { /* restore sender's time zone */ - T = e->date_sent; + now = e->date_sent; if (e->zoccident) - T -= (e->zhours * 3600 + e->zminutes * 60); + now -= (e->zhours * 3600 + e->zminutes * 60); else - T += (e->zhours * 3600 + e->zminutes * 60); - tm = gmtime(&T); + now += (e->zhours * 3600 + e->zminutes * 60); + tm = gmtime(&now); } if (!do_locales) -- 2.50.1