diff options
Diffstat (limited to 'hush.c')
-rw-r--r-- | hush.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -112,7 +112,7 @@ | |||
112 | #else | 112 | #else |
113 | #define applet_name "hush" | 113 | #define applet_name "hush" |
114 | #include "standalone.h" | 114 | #include "standalone.h" |
115 | #define shell_main main | 115 | #define hush_main main |
116 | #undef BB_FEATURE_SH_FANCY_PROMPT | 116 | #undef BB_FEATURE_SH_FANCY_PROMPT |
117 | #endif | 117 | #endif |
118 | 118 | ||
@@ -2562,7 +2562,7 @@ static void setup_job_control() | |||
2562 | tcsetpgrp(shell_terminal, shell_pgrp); | 2562 | tcsetpgrp(shell_terminal, shell_pgrp); |
2563 | } | 2563 | } |
2564 | 2564 | ||
2565 | int shell_main(int argc, char **argv) | 2565 | int hush_main(int argc, char **argv) |
2566 | { | 2566 | { |
2567 | int opt; | 2567 | int opt; |
2568 | FILE *input; | 2568 | FILE *input; |
@@ -2572,8 +2572,8 @@ int shell_main(int argc, char **argv) | |||
2572 | global_argc = argc; | 2572 | global_argc = argc; |
2573 | global_argv = argv; | 2573 | global_argv = argv; |
2574 | 2574 | ||
2575 | /* (re?) initialize globals. Sometimes shell_main() ends up calling | 2575 | /* (re?) initialize globals. Sometimes hush_main() ends up calling |
2576 | * shell_main(), therefore we cannot rely on the BSS to zero out this | 2576 | * hush_main(), therefore we cannot rely on the BSS to zero out this |
2577 | * stuff. Reset these to 0 every time. */ | 2577 | * stuff. Reset these to 0 every time. */ |
2578 | ifs = NULL; | 2578 | ifs = NULL; |
2579 | /* map[] is taken care of with call to update_ifs_map() */ | 2579 | /* map[] is taken care of with call to update_ifs_map() */ |