Source-Changes-HG archive

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

[src/trunk]: src/sys/kern simple_lock_held is only defined when you use LOCKD...



details:   https://anonhg.NetBSD.org/src/rev/3de3cb302efd
branches:  trunk
changeset: 499444:3de3cb302efd
user:      veego <veego%NetBSD.org@localhost>
date:      Mon Nov 20 06:36:02 2000 +0000

description:
simple_lock_held is only defined when you use LOCKDEBUG.
Put it for now in an ifdef LOCKDEBUG.

diffstat:

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

diffs (19 lines):

diff -r ac458973c9c6 -r 3de3cb302efd sys/kern/tty_pty.c
--- a/sys/kern/tty_pty.c        Mon Nov 20 06:23:13 2000 +0000
+++ b/sys/kern/tty_pty.c        Mon Nov 20 06:36:02 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tty_pty.c,v 1.52 2000/11/19 22:34:56 jdolecek Exp $    */
+/*     $NetBSD: tty_pty.c,v 1.53 2000/11/20 06:36:02 veego Exp $       */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -135,7 +135,9 @@
                if (minor(dev) >= maxptys) {
            limit_reached:
                        tablefull("pty", "increase kern.maxptys");
+#if defined(LOCKDEBUG)
                        if (simple_lock_held(&pt_softc_mutex))
+#endif
                                simple_unlock(&pt_softc_mutex);
                        return (ENXIO);
                }



Home | Main Index | Thread Index | Old Index