Changeset View
Changeset View
Standalone View
Standalone View
stand/i386/boot2/boot2.c
Show First 20 Lines • Show All 381 Lines • ▼ Show 20 Lines | if (c == '-') { | ||||
OPT_SET(RBX_SERIAL); | OPT_SET(RBX_SERIAL); | ||||
cp = "no"; | cp = "no"; | ||||
} | } | ||||
printf("Keyboard: %s\n", cp); | printf("Keyboard: %s\n", cp); | ||||
continue; | continue; | ||||
#if SERIAL | #if SERIAL | ||||
} else if (c == 'S') { | } else if (c == 'S') { | ||||
j = 0; | j = 0; | ||||
while (*arg <= '9') { | i = (int)(*arg - '0'); | ||||
i = (unsigned int)(*arg - '0'); | while (i >= 0 && i <= 9) { | ||||
j = j * 10 + i; | j = j * 10 + i; | ||||
arg++; | arg++; | ||||
i = (int)(*arg - '0'); | |||||
} | } | ||||
if (j > 0 && i == -'0') { | if (j > 0 && i == -'0') { | ||||
comspeed = j; | comspeed = j; | ||||
break; | break; | ||||
} | } | ||||
/* | /* | ||||
* Fall through to error below | * Fall through to error below | ||||
* ('S' not in optstr[]). | * ('S' not in optstr[]). | ||||
▲ Show 20 Lines • Show All 266 Lines • Show Last 20 Lines |