From fd55ba823759eccc360acde1f1aa65e89c6ab614 Mon Sep 17 00:00:00 2001 From: David Greenman Date: Mon, 28 Aug 1995 11:15:54 +0000 Subject: Brought in changes from rev 1.11: don't use tzfile.h --- usr.bin/login/login.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index b8bf1f60dc098..f3f9ae6ea26e8 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -64,7 +64,6 @@ static char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94"; #include #include #include -#include #include #include @@ -366,7 +365,7 @@ main(argc, argv) (void)printf("Sorry -- your password has expired.\n"); changepass=1; } else if (pwd->pw_change - tp.tv_sec < - 2 * DAYSPERWEEK * SECSPERDAY && !quietlog) + 2 * 7 * 86400 && !quietlog) (void)printf("Warning: your password expires on %s", ctime(&pwd->pw_change)); if (pwd->pw_expire) @@ -374,7 +373,7 @@ main(argc, argv) (void)printf("Sorry -- your account has expired.\n"); sleepexit(1); } else if (pwd->pw_expire - tp.tv_sec < - 2 * DAYSPERWEEK * SECSPERDAY && !quietlog) + 2 * 7 * 86400 && !quietlog) (void)printf("Warning: your account expires on %s", ctime(&pwd->pw_expire)); -- cgit v1.3