[BusyBox-cvs] CVS update of busybox (init/mesg.c shell/msh.c)

Erik Andersen andersen at codepoet.org
Fri Aug 27 19:55:28 UTC 2004


    Date: Friday, August 27, 2004 @ 13:55:28
  Author: andersen
    Path: /var/cvs/busybox

Modified: init/mesg.c (1.2 -> 1.3) shell/msh.c (1.20 -> 1.21)

Quiet a few warnings


Index: busybox/init/mesg.c
diff -u busybox/init/mesg.c:1.2 busybox/init/mesg.c:1.3
--- busybox/init/mesg.c:1.2	Wed Mar 19 02:11:57 2003
+++ busybox/init/mesg.c	Fri Aug 27 13:55:28 2004
@@ -32,7 +32,7 @@
 {
 	struct stat sb;
 	char *tty;
-	char c;
+	char c = 0;
 
 	if ((--argc == 0)
 		|| ((argc == 1) && (((c = **++argv) == 'y') || (c == 'n')))) {
Index: busybox/shell/msh.c
diff -u busybox/shell/msh.c:1.20 busybox/shell/msh.c:1.21
--- busybox/shell/msh.c:1.20	Wed Aug  4 13:19:10 2004
+++ busybox/shell/msh.c	Fri Aug 27 13:55:27 2004
@@ -698,7 +698,6 @@
 	{0, 0}
 };
 
-static int expand_dotnode(struct op *);
 struct op *scantree(struct op *);
 static struct op *dowholefile(int, int);
 
@@ -841,7 +840,7 @@
 
 	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 @@
 }
 
 
-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;
 {



More information about the busybox-cvs mailing list