Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/pmax/pmax Move include of <sys/sysctl.h> after <vm/...



details:   https://anonhg.NetBSD.org/src/rev/1751a3c121bc
branches:  trunk
changeset: 480352:1751a3c121bc
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sun Jan 09 22:31:44 2000 +0000

description:
Move include of <sys/sysctl.h> after <vm/vm.h>
Add some parentheses around part of an expression to keep gcc -Wall happy.

diffstat:

 sys/arch/pmax/pmax/machdep.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (40 lines):

diff -r 9a16bea18913 -r 1751a3c121bc sys/arch/pmax/pmax/machdep.c
--- a/sys/arch/pmax/pmax/machdep.c      Sun Jan 09 20:53:30 2000 +0000
+++ b/sys/arch/pmax/pmax/machdep.c      Sun Jan 09 22:31:44 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.157 2000/01/09 14:34:33 ad Exp $ */
+/*     $NetBSD: machdep.c,v 1.158 2000/01/09 22:31:44 simonb Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.157 2000/01/09 14:34:33 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.158 2000/01/09 22:31:44 simonb Exp $");
 
 #include "fs_mfs.h"
 #include "opt_ddb.h"
@@ -66,11 +66,11 @@
 #include <sys/mount.h>
 #include <sys/syscallargs.h>
 #include <sys/kcore.h>
-#include <sys/sysctl.h>
 
 #include <vm/vm.h>
 #include <vm/vm_kern.h>
 #include <uvm/uvm_extern.h>
+#include <sys/sysctl.h>                        /* XXX after <vm/vm.h> */
 
 #include <dev/cons.h>
 
@@ -634,7 +634,7 @@
        doshutdownhooks();
 
        /* Finally, halt/reboot the system. */
-       printf("%s\n\n", (howto & RB_HALT != 0) ? "halted." : "rebooting...");
+       printf("%s\n\n", ((howto & RB_HALT) != 0) ? "halted." : "rebooting...");
        prom_halt(howto & RB_HALT, bootstr);
        /*NOTREACHED*/
 }



Home | Main Index | Thread Index | Old Index