Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/x86 Use the right return types for x86_nullop()...



details:   https://anonhg.NetBSD.org/src/rev/de526f4014ba
branches:  trunk
changeset: 770491:de526f4014ba
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Tue Oct 18 23:41:45 2011 +0000

description:
Use the right return types for x86_nullop() and x86_zeroop().

diffstat:

 sys/arch/x86/x86/x86_stub.c |  22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diffs (50 lines):

diff -r b3f5c365b15e -r de526f4014ba sys/arch/x86/x86/x86_stub.c
--- a/sys/arch/x86/x86/x86_stub.c       Tue Oct 18 23:30:54 2011 +0000
+++ b/sys/arch/x86/x86/x86_stub.c       Tue Oct 18 23:41:45 2011 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: x86_stub.c,v 1.2 2011/10/18 23:25:20 dyoung Exp $ */
+/* $NetBSD: x86_stub.c,v 1.3 2011/10/18 23:41:45 dyoung Exp $ */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x86_stub.c,v 1.2 2011/10/18 23:25:20 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_stub.c,v 1.3 2011/10/18 23:41:45 dyoung Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -9,8 +9,8 @@
 
 #include <machine/autoconf.h>
 
-int x86_nullop(void);
-void *x86_zeroop(void);
+int x86_zeroop(void);
+void *x86_nullop(void);
 void x86_voidop(void);
 
 void
@@ -18,18 +18,18 @@
 {
 }
 
+void *
+x86_nullop(void)
+{
+       return NULL;
+}
+
 int
-x86_nullop(void)
+x86_zeroop(void)
 {
        return 0;
 }
 
-void *
-x86_zeroop(void)
-{
-       return NULL;
-}
-
 __weak_alias(device_pci_props_register, x86_voidop);
 __weak_alias(device_pci_register, x86_nullop);
 __weak_alias(device_isa_register, x86_nullop);



Home | Main Index | Thread Index | Old Index