Remove bogus reference to _use_yp.

This commit is contained in:
Dag-Erling Smørgrav 2002-04-15 15:50:59 +00:00
parent 4c7e4a544a
commit 1c9fd646f6
2 changed files with 2 additions and 18 deletions

View File

@ -244,21 +244,13 @@ pw_prompt(void)
void
pw_error(const char *name, int error, int eval)
{
#ifdef YP
extern int _use_yp;
#endif /* YP */
if (error) {
if (name != NULL)
warn("%s", name);
else
warn(NULL);
}
#ifdef YP
if (_use_yp)
warnx("NIS information unchanged");
else
#endif /* YP */
warnx("%s: unchanged", masterpasswd);
warnx("password information unchanged");
(void)unlink(tempname);
exit(eval);
}

View File

@ -244,21 +244,13 @@ pw_prompt(void)
void
pw_error(const char *name, int error, int eval)
{
#ifdef YP
extern int _use_yp;
#endif /* YP */
if (error) {
if (name != NULL)
warn("%s", name);
else
warn(NULL);
}
#ifdef YP
if (_use_yp)
warnx("NIS information unchanged");
else
#endif /* YP */
warnx("%s: unchanged", masterpasswd);
warnx("password information unchanged");
(void)unlink(tempname);
exit(eval);
}