From 785001468dffa2d532b6efa5603622dd85d2bc74 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 27 Aug 2004 19:55:28 +0000 Subject: Quiet a few warnings --- init/mesg.c | 2 +- shell/msh.c | 20 +------------------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/init/mesg.c b/init/mesg.c index 7b8acf6..7fd9d24 100644 --- a/init/mesg.c +++ b/init/mesg.c @@ -32,7 +32,7 @@ extern int mesg_main(int argc, char *argv[]) { struct stat sb; char *tty; - char c; + char c = 0; if ((--argc == 0) || ((argc == 1) && (((c = **++argv) == 'y') || (c == 'n')))) { diff --git a/shell/msh.c b/shell/msh.c index 22a6170..df4c3da 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; { -- cgit v1.1