]> git.baikalelectronics.ru Git - uboot.git/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)
commit243250c5f33dfd1c7330d042762b9c8aaaa8ec94
tree001ceb67dce389777a2e756c631074c20c0154af
parent883d60845f874e39e71bec301ccc4a25ec1e7e8a
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