From edd9ca574327205933f23205d7051f613e46b23b Mon Sep 17 00:00:00 2001 From: "\"Robert P. J. Day\"" Date: Sat, 1 Jul 2006 14:52:12 +0000 Subject: More removal of "#if 0" content. --- init/init.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'init') diff --git a/init/init.c b/init/init.c index b3d1f6d36..877b08122 100644 --- a/init/init.c +++ b/init/init.c @@ -312,15 +312,6 @@ static void console_init(void) if ((s = getenv("CONSOLE")) != NULL || (s = getenv("console")) != NULL) { safe_strncpy(console, s, sizeof(console)); -#if 0 /* #cpu(sparc) */ - /* sparc kernel supports console=tty[ab] parameter which is also - * passed to init, so catch it here */ - /* remap tty[ab] to /dev/ttyS[01] */ - if (strcmp(s, "ttya") == 0) - safe_strncpy(console, SC_0, sizeof(console)); - else if (strcmp(s, "ttyb") == 0) - safe_strncpy(console, SC_1, sizeof(console)); -#endif } else { /* 2.2 kernels: identify the real console backend and try to use it */ if (ioctl(0, TIOCGSERIAL, &sr) == 0) { @@ -842,9 +833,6 @@ static void new_init_action(int action, const char *command, const char *cons) strcpy(new_action->command, command); new_action->action = action; strcpy(new_action->terminal, cons); -#if 0 /* calloc zeroed always */ - new_action->pid = 0; -#endif messageD(LOG|CONSOLE, "command='%s' action='%d' terminal='%s'\n", new_action->command, new_action->action, new_action->terminal); } -- cgit v1.2.3