]> git.sur5r.net Git - u-boot/commit
stdio_names: Ensure MAX_NAMES is defined before use, don't use 3 directly
authorTom Rini <trini@konsulko.com>
Thu, 3 May 2018 13:12:26 +0000 (09:12 -0400)
committerTom Rini <trini@konsulko.com>
Sun, 6 May 2018 17:35:16 +0000 (13:35 -0400)
commit27b4225b3c81aefc0ded9bf62d0873e72725664d
tree001ceb67dce389777a2e756c631074c20c0154af
parentdba8070f447d9490406005b3f16f225effc85893
stdio_names: Ensure MAX_NAMES is defined before use, don't use 3 directly

With tighter build flags the fact that <stdio_dev.h> doesn't have a
reference back to MAX_NAMES causes an error.  Include <stdio.h> here and
then in common/console.c use MAX_NAMES rather than 3 when working with
stdio_names.

Reported-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Tested-by: Peter Robinson <pbrobinson@gmail.com>
common/console.c
include/stdio_dev.h