svn commit: trunk/busybox/shell

vodz at busybox.net vodz at busybox.net
Thu Sep 22 14:38:23 UTC 2005


Author: vodz
Date: 2005-09-22 07:38:17 -0700 (Thu, 22 Sep 2005)
New Revision: 11580

Log:
Reduce exported from msh applet

Modified:
   trunk/busybox/shell/msh.c


Changeset:
Modified: trunk/busybox/shell/msh.c
===================================================================
--- trunk/busybox/shell/msh.c	2005-09-22 14:35:29 UTC (rev 11579)
+++ trunk/busybox/shell/msh.c	2005-09-22 14:38:17 UTC (rev 11580)
@@ -162,7 +162,8 @@
 #define	TDOT	17
 
 /* Strings for names to make debug easier */
-char *T_CMD_NAMES[] = {
+#ifdef MSHDEBUG
+static char *T_CMD_NAMES[] = {
 	"PLACEHOLDER",
 	"TCOM",
 	"TPAREN",
@@ -182,8 +183,8 @@
 	"TASYNC",
 	"TDOT",
 };
+#endif
 
-
 /*
  * actions determining the environment of a process
  */
@@ -698,7 +699,7 @@
 	{0, 0}
 };
 
-struct op *scantree(struct op *);
+static struct op *scantree(struct op *);
 static struct op *dowholefile(int, int);
 
 /* Globals */
@@ -4638,8 +4639,8 @@
 	return (wd);
 }
 
-int (*func) (char *, char *);
-int globv;
+static int (*func) (char *, char *);
+static int globv;
 
 static void glob0(a0, a1, a2, a3)
 char *a0;




More information about the busybox-cvs mailing list