diff options
| author | Garrett Wollman <wollman@FreeBSD.org> | 1995-08-07 19:17:46 +0000 |
|---|---|---|
| committer | Garrett Wollman <wollman@FreeBSD.org> | 1995-08-07 19:17:46 +0000 |
| commit | 656dcd4316d328f627e3c8f99be96bb2c41baf5b (patch) | |
| tree | 413738746625eee30af858d100ea794582067fa4 /usr.bin/login/login.c | |
| parent | 8e53a8e6fc66c9fbe9b277c18b90c11de39d7b7a (diff) | |
Notes
Diffstat (limited to 'usr.bin/login/login.c')
| -rw-r--r-- | usr.bin/login/login.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index b8bf1f60dc09..f3f9ae6ea26e 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 <string.h> #include <syslog.h> #include <ttyent.h> -#include <tzfile.h> #include <unistd.h> #include <utmp.h> @@ -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)); |
