* lib/prototypes.h, libmisc/age.c, src/expiry.c, src/login.c: A

shadow entry is now sufficient for agecheck. Remove the first
	passwd entry parameter.
This commit is contained in:
nekral-guest
2009-04-11 18:37:08 +00:00
parent 42590e062f
commit cab74eddef
5 changed files with 12 additions and 4 deletions

View File

@@ -127,7 +127,7 @@ int main (int argc, char **argv)
/*
* Print out number of days until expiration.
*/
agecheck (pwd, spwd);
agecheck (spwd);
/*
* Exit with status indicating state of account.

View File

@@ -427,8 +427,10 @@ int main (int argc, char **argv)
char fromhost[512];
struct passwd *pwd;
char **envp = environ;
#ifndef
static char temp_pw[2];
static char temp_shell[] = "/bin/sh";
#endif
#ifdef USE_PAM
int retcode;
@@ -1200,7 +1202,7 @@ int main (int argc, char **argv)
#endif
printf (".\n");
}
agecheck (&pwent, spwd);
agecheck (spwd);
mailcheck (); /* report on the status of mail */
#endif /* !USE_PAM */