Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Apr 2011 17:54:12 +0000 (UTC)
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r220392 - head/sys/boot/i386/boot2
Message-ID:  <201104061754.p36HsCuj007716@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
-}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104061754.p36HsCuj007716>