From 3672fe9e9141c0684cae1e72e84cb2704f2a8702 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 15 Nov 2006 21:52:10 +0000 Subject: remove duplicate flag decls --- 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