diff options
author | rdivacky <rdivacky@FreeBSD.org> | 2011-04-06 17:54:12 +0000 |
---|---|---|
committer | rdivacky <rdivacky@FreeBSD.org> | 2011-04-06 17:54:12 +0000 |
commit | 54a18d388a501f8b9e1a6821af2ef357fa5d2c74 (patch) | |
tree | 3ed813802abe5b291760a67808f5b29f9a9af8bd /sys/boot/i386/boot2 | |
parent | 96b1d8b6d77acdb5fb5d615776525213574ca4a1 (diff) | |
download | FreeBSD-src-54a18d388a501f8b9e1a6821af2ef357fa5d2c74.zip FreeBSD-src-54a18d388a501f8b9e1a6821af2ef357fa5d2c74.tar.gz |
Move getc() body before xgetc() so gcc does not emit a warning about function
having no body.
Approved by: jhb
Diffstat (limited to 'sys/boot/i386/boot2')
-rw-r--r-- | sys/boot/i386/boot2/boot2.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/boot/i386/boot2/boot2.c b/sys/boot/i386/boot2/boot2.c index bac151c..93fd839 100644 --- a/sys/boot/i386/boot2/boot2.c +++ b/sys/boot/i386/boot2/boot2.c @@ -627,6 +627,15 @@ xputc(int 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) { if (OPT_CHECK(RBX_NOINTR)) @@ -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); -} |