summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>1999-01-08 17:31:30 +0000
committereivind <eivind@FreeBSD.org>1999-01-08 17:31:30 +0000
commita8dc66f457be84eefbe16e70c901ceb11137ba65 (patch)
treee5747f527c552fa90334c779c047697b372582fb /sys/kern/tty.c
parent1c69824749ed0aa6efce159d39ab3f17fc9e25f2 (diff)
downloadFreeBSD-src-a8dc66f457be84eefbe16e70c901ceb11137ba65.zip
FreeBSD-src-a8dc66f457be84eefbe16e70c901ceb11137ba65.tar.gz
Split DIAGNOSTIC -> DIAGNOSTIC, INVARIANTS, and INVARIANT_SUPPORT as
discussed on -hackers. Introduce 'KASSERT(assertion, ("panic message", args))' for simple check + panic. Reviewed by: msmith
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 4d7dfac..1adf784 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)tty.c 8.8 (Berkeley) 1/21/94
- * $Id: tty.c,v 1.109 1998/12/07 07:59:20 ache Exp $
+ * $Id: tty.c,v 1.110 1998/12/08 10:22:07 bde Exp $
*/
/*-
@@ -1310,10 +1310,8 @@ ttrstrt(tp_arg)
struct tty *tp;
int s;
-#ifdef DIAGNOSTIC
- if (tp_arg == NULL)
- panic("ttrstrt");
-#endif
+ KASSERT(tp_arg != NULL, ("ttrstrt"));
+
tp = tp_arg;
s = spltty();
OpenPOWER on IntegriCloud