]> git.baikalelectronics.ru Git - uboot.git/commit
common: rename getc() to getchar()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 7 Oct 2020 16:11:48 +0000 (18:11 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 22 Oct 2020 13:54:53 +0000 (09:54 -0400)
commitc4b9ea0fd4ffb2a28906e0ea96483410c05d9c5e
tree8e61521f5bd9d6e01af762785307ad7c84d91c43
parenta9ef7251adaea007a1f0525de8a830161128e118
common: rename getc() to getchar()

The sandbox is built with the SDL2 library with invokes the X11 library
which in turn calls getc(). But getc() in glibc is defined as

    int getc(FILE *)

This does not match our definition.

    int getc(void)

The sandbox crashes when called with parameter -l.

Rename our library symbol getc() to getchar().

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
17 files changed:
api/api.c
cmd/bootmenu.c
cmd/load.c
common/autoboot.c
common/cli_readline.c
common/console.c
common/spl/spl_ymodem.c
common/xyzModem.c
drivers/ddr/fsl/main.c
drivers/ram/stm32mp1/stm32mp1_interactive.c
drivers/serial/serial-uclass.c
drivers/serial/serial.c
include/_exports.h
include/stdio.h
lib/charset.c
lib/efi_loader/efi_console.c
test/dm/usb.c