aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-11-08 22:40:41 -0500
committerTom Rini <trini@konsulko.com>2023-11-08 22:44:56 -0500
commit9b431fb7a66c34ca376d495fd34700eab24f8214 (patch)
tree8ebcdbca81056a17047b460c669557e4a1bf71eb
parent43dcb406e8a269b170b0f7cae323f89edf6171b6 (diff)
downloadu-boot-TEST/v11.1-hush-2021.zip
u-boot-TEST/v11.1-hush-2021.tar.gz
u-boot-TEST/v11.1-hush-2021.tar.bz2
test: Disable ENABLE_FEATURE_EDITING for parity with old hushTEST/v11.1-hush-2021
Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r--common/cli_hush_2021.c2
-rw-r--r--common/cli_hush_upstream.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/common/cli_hush_2021.c b/common/cli_hush_2021.c
index 15a5d31..481c018 100644
--- a/common/cli_hush_2021.c
+++ b/common/cli_hush_2021.c
@@ -32,7 +32,7 @@
* Define hush features by the names used upstream.
*/
#define ENABLE_HUSH_INTERACTIVE 1
-#define ENABLE_FEATURE_EDITING 1
+#define ENABLE_FEATURE_EDITING 0
#define ENABLE_HUSH_IF 1
#define ENABLE_HUSH_LOOPS 1
/* No MMU in U-Boot */
diff --git a/common/cli_hush_upstream.c b/common/cli_hush_upstream.c
index 709c055..9c58e98 100644
--- a/common/cli_hush_upstream.c
+++ b/common/cli_hush_upstream.c
@@ -3087,7 +3087,9 @@ static int i_getch(struct in_str *i)
#endif /* !__U_BOOT__ */
ch = fgetc_interactive(i);
+#ifndef __U_BOOT__
out:
+#endif /* !__U_BOOT__ */
debug_printf("file_get: got '%c' %d\n", ch, ch);
i->last_char = ch;
#if ENABLE_HUSH_LINENO_VAR