svn commit: trunk/busybox/shell
vapier at busybox.net
vapier at busybox.net
Wed Nov 15 13:52:10 PST 2006
Author: vapier
Date: 2006-11-15 13:52:10 -0800 (Wed, 15 Nov 2006)
New Revision: 16534
Log:
remove duplicate flag decls
Modified:
trunk/busybox/shell/msh.c
Changeset:
Modified: trunk/busybox/shell/msh.c
===================================================================
--- trunk/busybox/shell/msh.c 2006-11-15 21:00:07 UTC (rev 16533)
+++ trunk/busybox/shell/msh.c 2006-11-15 21:52:10 UTC (rev 16534)
@@ -237,7 +237,9 @@
* -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 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;
More information about the busybox-cvs
mailing list