diff options
author | Denys Vlasenko | 2010-02-26 09:52:45 +0100 |
---|---|---|
committer | Denys Vlasenko | 2010-02-26 09:52:45 +0100 |
commit | fd686a262fa34b71900b010b4b31d7e2e3f3385c (patch) | |
tree | 102c38699d6d732ed0f5bc2e478a824e59a59f75 /loginutils/login.c | |
parent | 99709ab03387ca623e3fc1cac69d242ed44da45c (diff) | |
download | busybox-fd686a262fa34b71900b010b4b31d7e2e3f3385c.zip busybox-fd686a262fa34b71900b010b4b31d7e2e3f3385c.tar.gz |
setup_environment(): eliminate one parameter
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'loginutils/login.c')
-rw-r--r-- | loginutils/login.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/loginutils/login.c b/loginutils/login.c index 974125d..b5e348b 100644 --- a/loginutils/login.c +++ b/loginutils/login.c @@ -477,8 +477,9 @@ int login_main(int argc UNUSED_PARAM, char **argv) tmp = pw->pw_shell; if (!tmp || !*tmp) tmp = DEFAULT_SHELL; - /* setup_environment params: shell, clear_env, change_env, pw */ - setup_environment(tmp, !(opt & LOGIN_OPT_p), SETUP_ENV_CHANGEENV, pw); + setup_environment(tmp, + (!(opt & LOGIN_OPT_p) * SETUP_ENV_CLEARENV) + SETUP_ENV_CHANGEENV, + pw); motd(); |