summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2018-06-26 18:27:54 +0200
committerDenys Vlasenko2018-06-26 18:27:54 +0200
commit35a017c0c52bc6de761b30bc0468a6fec380ab27 (patch)
tree123a99b9a40ddc9816e2edbf309259f13809c3c9
parentb2b14cbd4c20d4dda1599fc95680b0583533ab48 (diff)
downloadbusybox-35a017c0c52bc6de761b30bc0468a6fec380ab27.zip
busybox-35a017c0c52bc6de761b30bc0468a6fec380ab27.tar.gz
hush: unset_local_var_len is only used by unset_local_var
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--shell/hush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c
index c3cb938..1f83267 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -2333,6 +2333,7 @@ static void set_pwd_var(unsigned flag)
set_local_var(xasprintf("PWD=%s", get_cwd(/*force:*/ 1)), flag);
}
+#if ENABLE_HUSH_UNSET || ENABLE_HUSH_GETOPTS
static int unset_local_var_len(const char *name, int name_len)
{
struct variable *cur;
@@ -2366,7 +2367,6 @@ static int unset_local_var_len(const char *name, int name_len)
return EXIT_SUCCESS;
}
-#if ENABLE_HUSH_UNSET || ENABLE_HUSH_GETOPTS
static int unset_local_var(const char *name)
{
return unset_local_var_len(name, strlen(name));