login_prompt is the name of a function, use loginprompt for the internal variable.

This commit is contained in:
nekral-guest 2008-01-05 13:53:14 +00:00
parent 239b2d7bee
commit f11bbd3b70
2 changed files with 8 additions and 6 deletions

View File

@ -21,6 +21,8 @@
OK as long as prototypes.h included this file.) OK as long as prototypes.h included this file.)
* src/nologin.c: Make a proper prototype for the main() function * src/nologin.c: Make a proper prototype for the main() function
declaration. (add void) declaration. (add void)
* src/login.c: login_prompt is the name of a function, use
loginprompt for the internal variable.
2008-01-01 Nicolas François <nicolas.francois@centraliens.net> 2008-01-01 Nicolas François <nicolas.francois@centraliens.net>

View File

@ -608,19 +608,19 @@ int main (int argc, char **argv)
if (!fflg || (getuid () != 0)) { if (!fflg || (getuid () != 0)) {
int failcount = 0; int failcount = 0;
char hostn[256]; char hostn[256];
char login_prompt[256]; /* That's one hell of a prompt :) */ char loginprompt[256]; /* That's one hell of a prompt :) */
/* Make the login prompt look like we want it */ /* Make the login prompt look like we want it */
if (!gethostname (hostn, sizeof (hostn))) if (!gethostname (hostn, sizeof (hostn)))
snprintf (login_prompt, snprintf (loginprompt,
sizeof (login_prompt), sizeof (loginprompt),
_("%s login: "), hostn); _("%s login: "), hostn);
else else
snprintf (login_prompt, snprintf (loginprompt,
sizeof (login_prompt), _("login: ")); sizeof (loginprompt), _("login: "));
retcode = retcode =
pam_set_item (pamh, PAM_USER_PROMPT, login_prompt); pam_set_item (pamh, PAM_USER_PROMPT, loginprompt);
PAM_FAIL_CHECK; PAM_FAIL_CHECK;
/* if we didn't get a user on the command line, /* if we didn't get a user on the command line,