public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] console_buffer
@ 2010-03-24 19:52 Frans Meulenbroeks
  2010-03-24 20:00 ` Ben Warren
  0 siblings, 1 reply; 6+ messages in thread
From: Frans Meulenbroeks @ 2010-03-24 19:52 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-03-25  8:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-24 19:52 [U-Boot] console_buffer Frans Meulenbroeks
2010-03-24 20:00 ` Ben Warren
     [not found]   ` <ac9c93b11003241320u5b0723f1uc9850243110fdf1f@mail.gmail.com>
2010-03-24 20:25     ` Frans Meulenbroeks
2010-03-25  8:31       ` Detlev Zundel
2010-03-24 21:08   ` Wolfgang Denk
2010-03-24 21:12     ` Ben Warren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox