From: Ralph Corderoy Date: Sun, 23 Apr 2017 08:28:24 +0000 (+0100) Subject: uip/sortm.c: Remove unused variable and dlocaltimenow() call. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/62ee157e2dd14a1aec566d0370a1275654abd143 uip/sortm.c: Remove unused variable and dlocaltimenow() call. read_hdrs() has a auto `struct tws tb'. It's only use is as the destination for dlocaltimenow()'s result. Remove the variable. Also remove the dlocaltimenow() call; this I'm unsure about as it has a side effect of calling tzset(3). However, tests pass. Repository history sheds no light. --- diff --git a/uip/sortm.c b/uip/sortm.c index b44c3fd6..f07e7863 100644 --- a/uip/sortm.c +++ b/uip/sortm.c @@ -308,11 +308,8 @@ static int read_hdrs (struct msgs *mp, char *datesw) { int msgnum; - struct tws tb; struct smsg *s; - twscopy (&tb, dlocaltimenow ()); - smsgs = mh_xcalloc(mp->hghsel - mp->lowsel + 2, sizeof *smsgs); s = smsgs; for (msgnum = mp->lowsel; msgnum <= mp->hghsel; msgnum++) {