svn commit: r220392 - head/sys/boot/i386/boot2
Roman Divacky
rdivacky at FreeBSD.org
Wed Apr 6 17:54:12 UTC 2011
Author: rdivacky
Date: Wed Apr 6 17:54:12 2011
New Revision: 220392
URL: http://svn.freebsd.org/changeset/base/220392
Log:
Move getc() body before xgetc() so gcc does not emit a warning about function
having no body.
Approved by: jhb
Modified:
head/sys/boot/i386/boot2/boot2.c
Modified: head/sys/boot/i386/boot2/boot2.c
==============================================================================
--- head/sys/boot/i386/boot2/boot2.c Wed Apr 6 17:54:10 2011 (r220391)
+++ head/sys/boot/i386/boot2/boot2.c Wed Apr 6 17:54:12 2011 (r220392)
@@ -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);
-}
More information about the svn-src-all
mailing list