aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorGravatar "Vladimir N. Oleynik" <dzo@simtreas.ru>2005-09-22 14:38:17 +0000
committerGravatar "Vladimir N. Oleynik" <dzo@simtreas.ru>2005-09-22 14:38:17 +0000
commitac9731704a03d08b061ee02853e7cebe36964aba (patch)
treee20b7851dc40320632219fdc06d76026d4ef3e4a /shell
parent264e771b8bdb4f6ddf9ebd171ce0a88f9b855fb7 (diff)
downloadbusybox-ac9731704a03d08b061ee02853e7cebe36964aba.tar.gz
busybox-ac9731704a03d08b061ee02853e7cebe36964aba.tar.bz2
Reduce exported from msh applet
Diffstat (limited to 'shell')
-rw-r--r--shell/msh.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/shell/msh.c b/shell/msh.c
index 14e875854..25c98a430 100644
--- a/shell/msh.c
+++ b/shell/msh.c
@@ -162,7 +162,8 @@ struct op {
#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,7 +183,7 @@ char *T_CMD_NAMES[] = {
"TASYNC",
"TDOT",
};
-
+#endif
/*
* actions determining the environment of a process
@@ -698,7 +699,7 @@ static const struct builtincmd builtincmds[] = {
{0, 0}
};
-struct op *scantree(struct op *);
+static struct op *scantree(struct op *);
static struct op *dowholefile(int, int);
/* Globals */
@@ -4638,8 +4639,8 @@ REGISTER struct wdblock *wb;
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;