Quiet a few warnings
This commit is contained in:
parent
75813eea23
commit
785001468d
@ -32,7 +32,7 @@ extern int mesg_main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
struct stat sb;
|
struct stat sb;
|
||||||
char *tty;
|
char *tty;
|
||||||
char c;
|
char c = 0;
|
||||||
|
|
||||||
if ((--argc == 0)
|
if ((--argc == 0)
|
||||||
|| ((argc == 1) && (((c = **++argv) == 'y') || (c == 'n')))) {
|
|| ((argc == 1) && (((c = **++argv) == 'y') || (c == 'n')))) {
|
||||||
|
20
shell/msh.c
20
shell/msh.c
@ -698,7 +698,6 @@ static const struct builtincmd builtincmds[] = {
|
|||||||
{0, 0}
|
{0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
static int expand_dotnode(struct op *);
|
|
||||||
struct op *scantree(struct op *);
|
struct op *scantree(struct op *);
|
||||||
static struct op *dowholefile(int, int);
|
static struct op *dowholefile(int, int);
|
||||||
|
|
||||||
@ -841,7 +840,7 @@ extern int msh_main(int argc, char **argv)
|
|||||||
|
|
||||||
shell = lookup("SHELL");
|
shell = lookup("SHELL");
|
||||||
if (shell->value == null)
|
if (shell->value == null)
|
||||||
setval(shell, DEFAULT_SHELL);
|
setval(shell, (char *)DEFAULT_SHELL);
|
||||||
export(shell);
|
export(shell);
|
||||||
|
|
||||||
homedir = lookup("HOME");
|
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 *scantree(head)
|
||||||
struct op *head;
|
struct op *head;
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user