Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182095
b: refs/heads/master
c: 10229f3
h: refs/heads/master
i:
  182093: 06ec311
  182091: 810ebbf
  182087: 3c8d6fe
  182079: 7af2a49
v: v3
  • Loading branch information
Yoichi Yuasa authored and Ralf Baechle committed Feb 27, 2010
1 parent 0adfa86 commit ecacda2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ae7cbef5e5789e2ee6855222a3b83eb94591ef0b
refs/heads/master: 10229f3761fdc1050f972bf3a4c4623bde20002f
19 changes: 5 additions & 14 deletions trunk/arch/mips/alchemy/common/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,13 @@ char **prom_envp;

void prom_init_cmdline(void)
{
char *cp;
int actr;

actr = 1; /* Always ignore argv[0] */
int i;

cp = &(arcs_cmdline[0]);
while (actr < prom_argc) {
strcpy(cp, prom_argv[actr]);
cp += strlen(prom_argv[actr]);
*cp++ = ' ';
actr++;
for (i = 1; i < prom_argc; i++) {
strlcat(arcs_cmdline, prom_argv[i], COMMAND_LINE_SIZE);
if (i < (prom_argc - 1))
strlcat(arcs_cmdline, " ", COMMAND_LINE_SIZE);
}
if (cp != &(arcs_cmdline[0])) /* get rid of trailing space */
--cp;
if (prom_argc > 1)
*cp = '\0';
}

char *prom_getenv(char *envname)
Expand Down

0 comments on commit ecacda2

Please sign in to comment.