login_prompt: Simplify login_prompt API

The only user of login_prompt is the login tool. This implies that the
first argument is always the same.

It is much easier to verify printf's format string and its argument if
both are next to each other.

Signed-off-by: Samanta Navarro <ferivoz@riseup.net>
This commit is contained in:
Samanta Navarro authored and Serge Hallyn committed 2023-05-03 07:54:28 -05:00
1 parent 3010ec11ae
commit 7109b7c066
3 files changed
+14 -16

No files matched your search

+1 -1
View File
@@ -233,7 +233,7 @@ extern void dolastlog (
extern int login_access (const char *user, const char *from);
/* loginprompt.c */
extern void login_prompt (const char *, char *, int);
extern void login_prompt (char *, int);
/* mail.c */
extern void mailcheck (void);