diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-10-07 19:11:48 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-10-22 16:54:53 +0300 |
commit | c670aeee3df9186902dba07b76bd2de0776df390 (patch) | |
tree | 8e61521f5bd9d6e01af762785307ad7c84d91c43 /api/api.c | |
parent | 8d5d97cb28bf2ac1e0d7e4b24620c56f3fe45e6f (diff) | |
download | u-boot-c670aeee3df9186902dba07b76bd2de0776df390.tar.xz |
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>
Diffstat (limited to 'api/api.c')
-rw-r--r-- | api/api.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -57,7 +57,7 @@ static int API_getc(va_list ap) if ((c = (int *)va_arg(ap, uintptr_t)) == NULL) return API_EINVAL; - *c = getc(); + *c = getchar(); return 0; } |