Subject: Re: CVS commit: src/sys
To: None <cdi@netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: source-changes
Date: 10/18/2003 17:54:28
In article <20031017181643.341A22DA1D@cvs.netbsd.org>
cdi@netbsd.org wrote:
> Module Name: src
> Committed By: cdi
> Date: Fri Oct 17 18:16:43 UTC 2003
>
> Modified Files:
> src/sys/conf: files
> src/sys/dev: cons.c cons.h
>
> Log Message:
> Introduce null console. This pseudo device acts as a normal console with the
> exception that it discards any output, and is useful for booting the kernel
> on headless boxes.
:
> cvs rdiff -r1.50 -r1.51 src/sys/dev/cons.c
-struct consdev *cn_tab; /* physical console device info */
+struct consdev *cn_tab = NULL; /* physical console device info */
Is this initialization really needed for nullcons support?
Some ports (like sun3) initialize cn_tab in MD sources,
so this change causes "multiple definition" error on link.
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp