summaryrefslogtreecommitdiff
path: root/common/cli_hush_modern.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cli_hush_modern.c')
-rw-r--r--common/cli_hush_modern.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/common/cli_hush_modern.c b/common/cli_hush_modern.c
index fb578c38535..9a1bc977d5b 100644
--- a/common/cli_hush_modern.c
+++ b/common/cli_hush_modern.c
@@ -26,7 +26,7 @@
/*
* BusyBox Version: UPDATE THIS WHEN PULLING NEW UPSTREAM REVISION!
*/
-#define BB_VER "1.34.0.git37460f5daff9"
+#define BB_VER "1.35.0.git7d1c7d833785"
/*
* Define hush features by the names used upstream.
@@ -236,6 +236,24 @@ static size_t list_size(char **list)
return size;
}
+static int varcmp(const char *p, const char *q)
+{
+ int c, d;
+
+ while ((c = *p) == (d = *q)) {
+ if (c == '\0' || c == '=')
+ goto out;
+ p++;
+ q++;
+ }
+ if (c == '=')
+ c = '\0';
+ if (d == '=')
+ d = '\0';
+out:
+ return c - d;
+}
+
struct in_str;
static int u_boot_cli_readline(struct in_str *i);