summaryrefslogtreecommitdiff
path: root/test/dm/usb.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-10-07 18:11:48 +0200
committerTom Rini <trini@konsulko.com>2020-10-22 09:54:53 -0400
commitc670aeee3df9186902dba07b76bd2de0776df390 (patch)
tree8e61521f5bd9d6e01af762785307ad7c84d91c43 /test/dm/usb.c
parent8d5d97cb28bf2ac1e0d7e4b24620c56f3fe45e6f (diff)
downloadu-boot-c670aeee3df9186902dba07b76bd2de0776df390.tar.gz
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 'test/dm/usb.c')
-rw-r--r--test/dm/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dm/usb.c b/test/dm/usb.c
index db4b8ba0f7..5d6ceefce0 100644
--- a/test/dm/usb.c
+++ b/test/dm/usb.c
@@ -427,7 +427,7 @@ static int dm_test_usb_keyb(struct unit_test_state *uts)
for (c = pos->result; *c; ++c) {
ut_asserteq(1, tstc());
- ut_asserteq(*c, getc());
+ ut_asserteq(*c, getchar());
}
ut_asserteq(0, tstc());
}