Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/dev Initialize zsconschannel to -1 so that i...



details:   https://anonhg.NetBSD.org/src/rev/5f047b44f4b7
branches:  trunk
changeset: 573288:5f047b44f4b7
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Jan 24 21:39:15 2005 +0000

description:
Initialize zsconschannel to -1 so that it can't matched unless zscninit
is explicitly called to set it up.

diffstat:

 sys/arch/macppc/dev/zs.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4becf5fbae3e -r 5f047b44f4b7 sys/arch/macppc/dev/zs.c
--- a/sys/arch/macppc/dev/zs.c  Mon Jan 24 21:34:48 2005 +0000
+++ b/sys/arch/macppc/dev/zs.c  Mon Jan 24 21:39:15 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zs.c,v 1.31 2005/01/10 16:38:06 chs Exp $      */
+/*     $NetBSD: zs.c,v 1.32 2005/01/24 21:39:15 matt Exp $     */
 
 /*
  * Copyright (c) 1996, 1998 Bill Studenmund
@@ -54,7 +54,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.31 2005/01/10 16:38:06 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.32 2005/01/24 21:39:15 matt Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -113,7 +113,7 @@
 
 /* console stuff */
 void   *zs_conschan = 0;
-int    zs_conschannel;
+int    zs_conschannel = -1;
 #ifdef ZS_CONSOLE_ABORT
 int    zs_cons_canabort = 1;
 #else



Home | Main Index | Thread Index | Old Index