diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-08-27 19:55:28 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-08-27 19:55:28 +0000 |
commit | 785001468dffa2d532b6efa5603622dd85d2bc74 (patch) | |
tree | a1e771f4116c05bd1b059cc52b78b4534ef1e3e9 | |
parent | 75813eea230ccf60ac8623ffb161c890c6f063c5 (diff) | |
download | busybox-w32-785001468dffa2d532b6efa5603622dd85d2bc74.tar.gz busybox-w32-785001468dffa2d532b6efa5603622dd85d2bc74.tar.bz2 busybox-w32-785001468dffa2d532b6efa5603622dd85d2bc74.zip |
Quiet a few warnings
-rw-r--r-- | init/mesg.c | 2 | ||||
-rw-r--r-- | shell/msh.c | 20 |
2 files changed, 2 insertions, 20 deletions
diff --git a/init/mesg.c b/init/mesg.c index 7b8acf657..7fd9d24ae 100644 --- a/init/mesg.c +++ b/init/mesg.c | |||
@@ -32,7 +32,7 @@ extern int mesg_main(int argc, char *argv[]) | |||
32 | { | 32 | { |
33 | struct stat sb; | 33 | struct stat sb; |
34 | char *tty; | 34 | char *tty; |
35 | char c; | 35 | char c = 0; |
36 | 36 | ||
37 | if ((--argc == 0) | 37 | if ((--argc == 0) |
38 | || ((argc == 1) && (((c = **++argv) == 'y') || (c == 'n')))) { | 38 | || ((argc == 1) && (((c = **++argv) == 'y') || (c == 'n')))) { |
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[] = { | |||
698 | {0, 0} | 698 | {0, 0} |
699 | }; | 699 | }; |
700 | 700 | ||
701 | static int expand_dotnode(struct op *); | ||
702 | struct op *scantree(struct op *); | 701 | struct op *scantree(struct op *); |
703 | static struct op *dowholefile(int, int); | 702 | static struct op *dowholefile(int, int); |
704 | 703 | ||
@@ -841,7 +840,7 @@ extern int msh_main(int argc, char **argv) | |||
841 | 840 | ||
842 | shell = lookup("SHELL"); | 841 | shell = lookup("SHELL"); |
843 | if (shell->value == null) | 842 | if (shell->value == null) |
844 | setval(shell, DEFAULT_SHELL); | 843 | setval(shell, (char *)DEFAULT_SHELL); |
845 | export(shell); | 844 | export(shell); |
846 | 845 | ||
847 | homedir = lookup("HOME"); | 846 | homedir = lookup("HOME"); |
@@ -1047,23 +1046,6 @@ REGISTER char *s; | |||
1047 | } | 1046 | } |
1048 | 1047 | ||
1049 | 1048 | ||
1050 | static int expand_dotnode(node) | ||
1051 | struct op *node; | ||
1052 | { | ||
1053 | struct op *outtree_save = outtree; | ||
1054 | |||
1055 | node->type = TDOT; | ||
1056 | newfile(node->words[1]); | ||
1057 | |||
1058 | node->left = dowholefile(TDOT, 0); | ||
1059 | |||
1060 | node->right = NULL; | ||
1061 | |||
1062 | outtree = outtree_save; | ||
1063 | |||
1064 | return (1); | ||
1065 | } | ||
1066 | |||
1067 | struct op *scantree(head) | 1049 | struct op *scantree(head) |
1068 | struct op *head; | 1050 | struct op *head; |
1069 | { | 1051 | { |