diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-09-25 12:49:29 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-09-25 12:49:29 +0200 |
commit | 0b4980c2527552594d4f540ebc6e6cfb398895b3 (patch) | |
tree | 09849573162ef5b8b6bba688277bb13f9d4eb07e /shell | |
parent | ffe03f04cb44f1ef606de4997c3032995b20518f (diff) | |
download | busybox-0b4980c2527552594d4f540ebc6e6cfb398895b3.tar.gz |
ash: trivial fixes for compile failures
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/shell/ash.c b/shell/ash.c index 153bcc057..d42316a88 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -6338,7 +6338,8 @@ subevalvar(char *p, char *varname, int strloc, int subtype, IF_ASH_BASH_COMPAT(const char *repl = NULL;) IF_ASH_BASH_COMPAT(int pos, len, orig_len;) int saveherefd = herefd; - int amount, workloc, resetloc; + int amount, resetloc; + IF_ASH_BASH_COMPAT(int workloc;) int zero; char *(*scan)(char*, char*, char*, char*, int, int); @@ -6451,9 +6452,9 @@ subevalvar(char *p, char *varname, int strloc, int subtype, rmescend--; str = (char *)stackblock() + strloc; preglob(str, varflags & VSQUOTE, 0); - workloc = expdest - (char *)stackblock(); #if ENABLE_ASH_BASH_COMPAT + workloc = expdest - (char *)stackblock(); if (subtype == VSREPLACE || subtype == VSREPLACEALL) { char *idx, *end; @@ -9310,11 +9311,11 @@ evalcommand(union node *cmd, int flags) /* Now locate the command. */ if (argc) { - const char *oldpath; int cmd_flag = DO_ERR; - +#if ENABLE_ASH_CMDCMD + const char *oldpath = path + 5; +#endif path += 5; - oldpath = path; for (;;) { find_command(argv[0], &cmdentry, cmd_flag, path); if (cmdentry.cmdtype == CMDUNKNOWN) { |