From 2ec77e221f3354928e99e307932dc4ae812dc433 Mon Sep 17 00:00:00 2001
From: vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Date: Wed, 15 Nov 2006 21:52:10 +0000
Subject: remove duplicate flag decls

git-svn-id: svn://busybox.net/trunk/busybox@16534 69ca8d6d-28ef-0310-b511-8ec308f3f277
---
 shell/msh.c | 6 +++---
 1 file 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;
-- 
cgit v1.2.3-55-g6feb