Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Make cn_isconsole check if cn_tab is NULL.



details:   https://anonhg.NetBSD.org/src/rev/df578de8a12e
branches:  trunk
changeset: 517045:df578de8a12e
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Mon Nov 05 21:38:14 2001 +0000

description:
Make cn_isconsole check if cn_tab is NULL.

diffstat:

 sys/sys/systm.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r b505b657783c -r df578de8a12e sys/sys/systm.h
--- a/sys/sys/systm.h   Mon Nov 05 21:29:43 2001 +0000
+++ b/sys/sys/systm.h   Mon Nov 05 21:38:14 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: systm.h,v 1.138 2001/10/21 19:24:43 simonb Exp $       */
+/*     $NetBSD: systm.h,v 1.139 2001/11/05 21:38:14 fvdl Exp $ */
 
 /*-
  * Copyright (c) 1982, 1988, 1991, 1993
@@ -343,7 +343,7 @@
 #define cn_trap()      console_debugger()
 #endif
 #ifndef cn_isconsole
-#define cn_isconsole(d)        ((d) == cn_tab->cn_dev)
+#define cn_isconsole(d)        (cn_tab != NULL && (d) == cn_tab->cn_dev)
 #endif
 
 void cn_init_magic __P((cnm_state_t *cnm));



Home | Main Index | Thread Index | Old Index