patch-2.4.20 linux-2.4.20/arch/mips/arc/cmdline.c
Next file: linux-2.4.20/arch/mips/arc/console.c
Previous file: linux-2.4.20/arch/mips/arc/arc_con.c
Back to the patch index
Back to the overall index
- Lines: 51
- Date:
Thu Nov 28 15:53:09 2002
- Orig file:
linux-2.4.19/arch/mips/arc/cmdline.c
- Orig date:
Fri Aug 2 17:39:43 2002
diff -urN linux-2.4.19/arch/mips/arc/cmdline.c linux-2.4.20/arch/mips/arc/cmdline.c
@@ -1,4 +1,8 @@
/*
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
* cmdline.c: Kernel command line creation using ARCS argc/argv.
*
* Copyright (C) 1996 David S. Miller (dm@engr.sgi.com)
@@ -46,13 +50,13 @@
for(i = 0; i < NENTS(used_arc); i++) {
int len = strlen(used_arc[i][0]);
- if(!strncmp(prom_argv[actr], used_arc[i][0], len)) {
+ if (!strncmp(prom_argv(actr), used_arc[i][0], len)) {
/* Ok, we want it. First append the replacement... */
strcat(cp, used_arc[i][1]);
cp += strlen(used_arc[i][1]);
/* ... and now the argument */
- s = strstr(prom_argv[actr], "=");
- if(s) {
+ s = strstr(prom_argv(actr), "=");
+ if (s) {
s++;
strcpy(cp, s);
cp += strlen(s);
@@ -76,7 +80,7 @@
actr = 1; /* Always ignore argv[0] */
cp = &(arcs_cmdline[0]);
- /*
+ /*
* Move ARC variables to the beginning to make sure they can be
* overridden by later arguments.
*/
@@ -86,12 +90,12 @@
for (i = 0; i < NENTS(ignored); i++) {
int len = strlen(ignored[i]);
- if(!strncmp(prom_argv[actr], ignored[i], len))
+ if (!strncmp(prom_argv(actr), ignored[i], len))
goto pic_cont;
}
/* Ok, we want it. */
- strcpy(cp, prom_argv[actr]);
- cp += strlen(prom_argv[actr]);
+ strcpy(cp, prom_argv(actr));
+ cp += strlen(prom_argv(actr));
*cp++ = ' ';
pic_cont:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)