diff options
author | "Vladimir N. Oleynik" <dzo@simtreas.ru> | 2005-10-15 14:23:55 +0400 |
---|---|---|
committer | "Vladimir N. Oleynik" <dzo@simtreas.ru> | 2005-10-15 14:23:55 +0400 |
commit | 6f347ef9dc540aaea025c0575e586817cd85cc8e (patch) | |
tree | 5fc98f67e92bb2eca75d33940a4f8698bb216f3a /loginutils/sulogin.c | |
parent | 84e7511607600c2c7b9e7c4087897d44cc4668c4 (diff) |
common BUFSIZ BSS buffer, small reduce code, data and bss
Diffstat (limited to 'loginutils/sulogin.c')
-rw-r--r-- | loginutils/sulogin.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c index a458b6ed7..4e689ad68 100644 --- a/loginutils/sulogin.c +++ b/loginutils/sulogin.c @@ -21,7 +21,7 @@ #define SULOGIN_PROMPT "\nGive root password for system maintenance\n" \ "(or type Control-D for normal startup):" -static const char *forbid[] = { +static const char * const forbid[] = { "ENV", "BASH_ENV", "HOME", @@ -53,11 +53,13 @@ extern int sulogin_main(int argc, char **argv) char *device = (char *) 0; const char *name = "root"; int timeout = 0; - static char pass[BUFSIZ]; + +#define pass bb_common_bufsiz1 + struct passwd pwent; struct passwd *pwd; time_t start, now; - const char **p; + const char * const *p; #ifdef CONFIG_FEATURE_SHADOWPASSWDS struct spwd *spwd = NULL; #endif /* CONFIG_FEATURE_SHADOWPASSWDS */ |