aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-11-15 21:52:10 +0000
committerMike Frysinger <vapier@gentoo.org>2006-11-15 21:52:10 +0000
commit3672fe9e9141c0684cae1e72e84cb2704f2a8702 (patch)
tree16d1403589cc0a0be61f0cf9227252520c97de14
parent1119972f917db59ccb7c74daebf5a0688e9d0e24 (diff)
downloadbusybox-3672fe9e9141c0684cae1e72e84cb2704f2a8702.tar.gz
remove duplicate flag decls
-rw-r--r--shell/msh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/msh.c b/shell/msh.c
index 95b4244d7..6c805b53e 100644
--- a/shell/msh.c
+++ b/shell/msh.c
@@ -237,7 +237,9 @@ static struct env {
* -x: trace
* -u: unset variables net diagnostic
*/
-static char *flag;
+static char flags['z' - 'a' + 1];
+/* this looks weird, but is OK ... we index flag with 'a'...'z' */
+static char *flag = flags - 'a';
static char *null; /* null value for variable */
static int intr; /* interrupt pending */
@@ -709,8 +711,6 @@ static struct var *ifs; /* field separators */
static int areanum; /* current allocation area */
static int intr;
static int inparse;
-static char flags['z' - 'a' + 1];
-static char *flag = flags - 'a';
static char *null = "";
static int heedint = 1;
static void (*qflag) (int) = SIG_IGN;