Fix machdep_boot.c
A last minute change made this no longer compile. Pass the right arg and eliminate now-unused variables from the code.
This commit is contained in:
parent
bb50079093
commit
a20946b5d1
@ -148,13 +148,11 @@ arm_print_kenv(void)
|
||||
static void
|
||||
cmdline_set_env(char *cmdline, const char *guard)
|
||||
{
|
||||
char *cmdline_next;
|
||||
size_t size, guard_len;
|
||||
size_t guard_len;
|
||||
|
||||
size = strlen(cmdline);
|
||||
/* Skip leading spaces. */
|
||||
for (; isspace(*cmdline) && (size > 0); cmdline++)
|
||||
size--;
|
||||
while (isspace(*cmdline))
|
||||
cmdline++;
|
||||
|
||||
/* Test and remove guard. */
|
||||
if (guard != NULL && guard[0] != '\0') {
|
||||
@ -162,10 +160,9 @@ cmdline_set_env(char *cmdline, const char *guard)
|
||||
if (strncasecmp(cmdline, guard, guard_len) != 0)
|
||||
return;
|
||||
cmdline += guard_len;
|
||||
size -= guard_len;
|
||||
}
|
||||
|
||||
boothowto |= boot_parse_cmdline();
|
||||
boothowto |= boot_parse_cmdline(cmdline);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user