projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2b14cb
)
hush: unset_local_var_len is only used by unset_local_var
author
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 26 Jun 2018 16:27:54 +0000
(18:27 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 26 Jun 2018 16:27:54 +0000
(18:27 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/hush.c
patch
|
blob
|
history
diff --git
a/shell/hush.c
b/shell/hush.c
index c3cb9382ac10e0d0620b1ab6b0a37dab446d24c9..1f83267be6f27bf7ba2b3617c81d867b28767b32 100644
(file)
--- 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));