summaryrefslogtreecommitdiff
path: root/imap/src/osdep/unix/ckp_psx.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2021-06-06 18:02:28 -0600
committerEduardo Chappa <chappa@washington.edu>2021-06-06 18:02:28 -0600
commitea54909c67de2589e6632efb25550814a2fc2411 (patch)
treeae36e8f3e6fad73624eadd681d5dab5996a94744 /imap/src/osdep/unix/ckp_psx.c
parente10411bf0ecb248b65ca83882e945e15f906a6d4 (diff)
downloadalpine-ea54909c67de2589e6632efb25550814a2fc2411.tar.xz
* Clear some warnings given by gcc-10.
Diffstat (limited to 'imap/src/osdep/unix/ckp_psx.c')
-rw-r--r--imap/src/osdep/unix/ckp_psx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/imap/src/osdep/unix/ckp_psx.c b/imap/src/osdep/unix/ckp_psx.c
index 0f425bd3..6c095730 100644
--- a/imap/src/osdep/unix/ckp_psx.c
+++ b/imap/src/osdep/unix/ckp_psx.c
@@ -53,7 +53,7 @@ struct passwd *checkpw (struct passwd *pw,char *pass,int argc,char *argv[])
* -1 local time is 1 day behind UTC, offset -24 hours
* -36x local time is January 1, UTC is December 31, offset +24 hours
*/
- if (julian = t->tm_yday -julian)
+ if ((julian = t->tm_yday -julian) != 0)
zone += ((julian < 0) == (abs (julian) == 1)) ? -24*60 : 24*60;
/* days since 1/1/1970 local time */
now = ((now /60) + zone) / (60*24);