MFi386: r284878
Reduce warnings: - Add prototype for boot2 main() - Don't make assignment within if statement, split it into two.
This commit is contained in:
parent
225e861d92
commit
7d0de310ff
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=284885
@ -152,6 +152,7 @@ static int comspeed = SIOSPD;
|
||||
static uint8_t ioctrl = IO_KEYBOARD;
|
||||
#endif
|
||||
|
||||
int main(void);
|
||||
void exit(int);
|
||||
static void load(void);
|
||||
static int parse(void);
|
||||
@ -620,7 +621,8 @@ parse()
|
||||
dsk.daua = dsk.disk | dsk.unit;
|
||||
dsk_meta = 0;
|
||||
}
|
||||
if (k = ep - arg) {
|
||||
k = ep - arg;
|
||||
if (k > 0) {
|
||||
if (k >= sizeof(knamebuf))
|
||||
return -1;
|
||||
memcpy(knamebuf, arg, k + 1);
|
||||
|
Loading…
Reference in New Issue
Block a user