Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/kern Apply patch (requested by sommerfeld):



details:   https://anonhg.NetBSD.org/src/rev/bccebae4b5a0
branches:  netbsd-1-4
changeset: 470550:bccebae4b5a0
user:      he <he%NetBSD.org@localhost>
date:      Fri May 05 13:03:34 2000 +0000

description:
Apply patch (requested by sommerfeld):
  Allow this to compile without DIAGNOSTIC defined.

diffstat:

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

diffs (19 lines):

diff -r 4ef8ae5eb553 -r bccebae4b5a0 sys/kern/kern_subr.c
--- a/sys/kern/kern_subr.c      Fri May 05 03:07:40 2000 +0000
+++ b/sys/kern/kern_subr.c      Fri May 05 13:03:34 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_subr.c,v 1.45.2.3 2000/04/30 20:12:42 he Exp $    */
+/*     $NetBSD: kern_subr.c,v 1.45.2.4 2000/05/05 13:03:34 he Exp $    */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -125,7 +125,9 @@
        u_int cnt;
        int error = 0;
        char *cp = buf;
+#ifdef DIAGNOSTIC
        struct proc *p = uio->uio_procp;
+#endif
 
 #ifdef DIAGNOSTIC
        if (uio->uio_rw != UIO_READ && uio->uio_rw != UIO_WRITE)



Home | Main Index | Thread Index | Old Index