From: Karel Zak Date: Mon, 21 Mar 2022 11:02:55 +0000 (+0100) Subject: agetty: cleanup login prompt macro use X-Git-Tag: v2.39-rc1~754 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fc047eb03c8d35e54ab5e7b8d00d03847249f1e0;p=thirdparty%2Futil-linux.git agetty: cleanup login prompt macro use Signed-off-by: Karel Zak --- diff --git a/term-utils/agetty.c b/term-utils/agetty.c index 22850786da..5b673e638b 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -144,8 +144,10 @@ #endif /* Login prompt. */ -#define LOGIN "login: " -#define LOGIN_ARGV_MAX 16 /* Numbers of args for login */ +#define LOGIN_PROMPT "login: " + +/* Numbers of args for login(1) */ +#define LOGIN_ARGV_MAX 16 /* * agetty --reload @@ -498,7 +500,8 @@ int main(int argc, char **argv) /* Autologin prompt */ eval_issue_file(&issue, &options, &termios); do_prompt(&issue, &options, &termios); - printf(_("%s%s (automatic login)\n"), LOGIN, options.autolog); + printf(_("%s%s (automatic login)\n"), LOGIN_PROMPT, + options.autolog); } else { /* Read the login name. */ debug("reading login name\n"); @@ -2136,7 +2139,8 @@ again: } if (!op->autolog) { /* Always show login prompt. */ - write_all(STDOUT_FILENO, LOGIN, sizeof(LOGIN) - 1); + write_all(STDOUT_FILENO, LOGIN_PROMPT, + sizeof(LOGIN_PROCESS) - 1); } }