aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-08-27 19:55:28 +0000
committerEric Andersen <andersen@codepoet.org>2004-08-27 19:55:28 +0000
commit785001468dffa2d532b6efa5603622dd85d2bc74 (patch)
treea1e771f4116c05bd1b059cc52b78b4534ef1e3e9 /shell
parent75813eea230ccf60ac8623ffb161c890c6f063c5 (diff)
downloadbusybox-785001468dffa2d532b6efa5603622dd85d2bc74.tar.gz
Quiet a few warnings
Diffstat (limited to 'shell')
-rw-r--r--shell/msh.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/shell/msh.c b/shell/msh.c
index 22a617095..df4c3dab3 100644
--- a/shell/msh.c
+++ b/shell/msh.c
@@ -698,7 +698,6 @@ static const struct builtincmd builtincmds[] = {
{0, 0}
};
-static int expand_dotnode(struct op *);
struct op *scantree(struct op *);
static struct op *dowholefile(int, int);
@@ -841,7 +840,7 @@ extern int msh_main(int argc, char **argv)
shell = lookup("SHELL");
if (shell->value == null)
- setval(shell, DEFAULT_SHELL);
+ setval(shell, (char *)DEFAULT_SHELL);
export(shell);
homedir = lookup("HOME");
@@ -1047,23 +1046,6 @@ REGISTER char *s;
}
-static int expand_dotnode(node)
-struct op *node;
-{
- struct op *outtree_save = outtree;
-
- node->type = TDOT;
- newfile(node->words[1]);
-
- node->left = dowholefile(TDOT, 0);
-
- node->right = NULL;
-
- outtree = outtree_save;
-
- return (1);
-}
-
struct op *scantree(head)
struct op *head;
{