]> diplodocus.org Git - nmh/commitdiff
uip/sortm.c: Remove unused variable and dlocaltimenow() call.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 23 Apr 2017 08:28:24 +0000 (09:28 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 23 Apr 2017 08:28:24 +0000 (09:28 +0100)
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.

uip/sortm.c

index b44c3fd..f07e786 100644 (file)
@@ -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++) {