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:
Roman Divacky 2011-04-06 17:54:12 +00:00
parent e806d352d2
commit a2e53e9621
1 changed files with 9 additions and 9 deletions

View File

@ -626,6 +626,15 @@ xputc(int 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
xgetc(int fn)
{
@ -640,12 +649,3 @@ xgetc(int fn)
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);
}