From: Frans Meulenbroeks Date: Wed, 24 Mar 2010 20:52:46 +0100 Subject: [U-Boot] console_buffer Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de yet another potential cleanup: I see both: extern char console_buffer[]; and extern char console_buffer[CONFIG_SYS_CBSIZE]; (and in fact console_buffer is declared as: char console_buffer[CONFIG_SYS_CBSIZE + 1]; /* console I/O buffer */ so with a +1). Questions: is the first or the 2nd form preferred? and if it is the 2nd form should it not have the +1? and wouldn't it be better to have this extern in a .h file (and if so which one)? Frans