aboutsummaryrefslogtreecommitdiff
path: root/shell/hush.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2023-01-03 08:28:16 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2023-01-03 08:28:16 +0100
commit27be0e8cfeb6f0f7a66bbfb2a6ca23d5a064e6ab (patch)
treebf56f6d0d922cf3eefb0e413e9326a2e60373dd8 /shell/hush.c
parent8ed57db65ba66709d3b4061c4f03766f1fe58780 (diff)
downloadbusybox-w32-27be0e8cfeb6f0f7a66bbfb2a6ca23d5a064e6ab.tar.gz
busybox-w32-27be0e8cfeb6f0f7a66bbfb2a6ca23d5a064e6ab.tar.bz2
busybox-w32-27be0e8cfeb6f0f7a66bbfb2a6ca23d5a064e6ab.zip
shell: fix compile failures in some configs
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to '')
-rw-r--r--shell/hush.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 051b123e7..693099209 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -8188,7 +8188,7 @@ static const struct built_in_command *find_builtin(const char *name)
8188 return find_builtin_helper(name, bltins2, &bltins2[ARRAY_SIZE(bltins2)]); 8188 return find_builtin_helper(name, bltins2, &bltins2[ARRAY_SIZE(bltins2)]);
8189} 8189}
8190 8190
8191#if ENABLE_HUSH_JOB && ENABLE_FEATURE_EDITING 8191#if ENABLE_HUSH_JOB && ENABLE_FEATURE_TAB_COMPLETION
8192static const char * FAST_FUNC get_builtin_name(int i) 8192static const char * FAST_FUNC get_builtin_name(int i)
8193{ 8193{
8194 if (/*i >= 0 && */ i < ARRAY_SIZE(bltins1)) { 8194 if (/*i >= 0 && */ i < ARRAY_SIZE(bltins1)) {
@@ -10668,8 +10668,12 @@ int hush_main(int argc, char **argv)
10668 10668
10669# if ENABLE_FEATURE_EDITING 10669# if ENABLE_FEATURE_EDITING
10670 G.line_input_state = new_line_input_t(FOR_SHELL); 10670 G.line_input_state = new_line_input_t(FOR_SHELL);
10671# if ENABLE_FEATURE_TAB_COMPLETION
10671 G.line_input_state->get_exe_name = get_builtin_name; 10672 G.line_input_state->get_exe_name = get_builtin_name;
10673# endif
10674# if EDITING_HAS_sh_get_var
10672 G.line_input_state->sh_get_var = get_local_var_value; 10675 G.line_input_state->sh_get_var = get_local_var_value;
10676# endif
10673# endif 10677# endif
10674# if ENABLE_HUSH_SAVEHISTORY && MAX_HISTORY > 0 10678# if ENABLE_HUSH_SAVEHISTORY && MAX_HISTORY > 0
10675 { 10679 {