Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Make this file compiles with !DIAGNOSTIC.



details:   https://anonhg.NetBSD.org/src/rev/a63de3759e53
branches:  trunk
changeset: 486631:a63de3759e53
user:      enami <enami%NetBSD.org@localhost>
date:      Sat May 27 01:43:27 2000 +0000

description:
Make this file compiles with !DIAGNOSTIC.

diffstat:

 sys/kern/kern_subr.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 3584f792d8c4 -r a63de3759e53 sys/kern/kern_subr.c
--- a/sys/kern/kern_subr.c      Sat May 27 01:03:00 2000 +0000
+++ b/sys/kern/kern_subr.c      Sat May 27 01:43:27 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_subr.c,v 1.67 2000/05/26 21:20:31 thorpej Exp $   */
+/*     $NetBSD: kern_subr.c,v 1.68 2000/05/27 01:43:27 enami Exp $     */
 
 /*-
  * Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
@@ -123,9 +123,10 @@
        u_int cnt;
        int error = 0;
        char *cp = buf;
+
+#ifdef DIAGNOSTIC
        struct proc *p = uio->uio_procp;
 
-#ifdef DIAGNOSTIC
        if (uio->uio_rw != UIO_READ && uio->uio_rw != UIO_WRITE)
                panic("uiomove: mode");
        if (uio->uio_segflg == UIO_USERSPACE && p != curproc)



Home | Main Index | Thread Index | Old Index