summaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorDenys Vlasenko2010-02-26 09:52:45 +0100
committerDenys Vlasenko2010-02-26 09:52:45 +0100
commitfd686a262fa34b71900b010b4b31d7e2e3f3385c (patch)
tree102c38699d6d732ed0f5bc2e478a824e59a59f75 /miscutils
parent99709ab03387ca623e3fc1cac69d242ed44da45c (diff)
downloadbusybox-fd686a262fa34b71900b010b4b31d7e2e3f3385c.zip
busybox-fd686a262fa34b71900b010b4b31d7e2e3f3385c.tar.gz
setup_environment(): eliminate one parameter
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/crontab.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/miscutils/crontab.c b/miscutils/crontab.c
index 7d57095..5557bc4 100644
--- a/miscutils/crontab.c
+++ b/miscutils/crontab.c
@@ -32,8 +32,9 @@ static void edit_file(const struct passwd *pas, const char *file)
/* CHILD - change user and run editor */
/* initgroups, setgid, setuid */
change_identity(pas);
- setup_environment(DEFAULT_SHELL, 0,
- SETUP_ENV_CHANGEENV | SETUP_ENV_TO_TMP, pas);
+ setup_environment(DEFAULT_SHELL,
+ SETUP_ENV_CHANGEENV | SETUP_ENV_TO_TMP,
+ pas);
ptr = getenv("VISUAL");
if (!ptr) {
ptr = getenv("EDITOR");