Move getc() body before xgetc() so gcc does not emit a warning about function
having no body. Approved by: jhb
This commit is contained in:
parent
e806d352d2
commit
a2e53e9621
|
@ -626,6 +626,15 @@ xputc(int c)
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
getc(int fn)
|
||||||
|
{
|
||||||
|
v86.addr = 0x16;
|
||||||
|
v86.eax = fn << 8;
|
||||||
|
v86int();
|
||||||
|
return fn == 0 ? v86.eax & 0xff : !V86_ZR(v86.efl);
|
||||||
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
xgetc(int fn)
|
xgetc(int fn)
|
||||||
{
|
{
|
||||||
|
@ -640,12 +649,3 @@ xgetc(int fn)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
|
||||||
getc(int fn)
|
|
||||||
{
|
|
||||||
v86.addr = 0x16;
|
|
||||||
v86.eax = fn << 8;
|
|
||||||
v86int();
|
|
||||||
return fn == 0 ? v86.eax & 0xff : !V86_ZR(v86.efl);
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue