diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-04-14 08:48:59 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-04-15 12:21:46 +0200 |
commit | 01f8f60cf06e180b2b5eb96ceb162473c0cb196a (patch) | |
tree | b792cbe498d9143e263704f7ce3fa79031790bdf /common/console_simple.c | |
parent | 70bbeea7b227866bdbdef0b249ff7f8644713f15 (diff) | |
download | barebox-01f8f60cf06e180b2b5eb96ceb162473c0cb196a.tar.gz barebox-01f8f60cf06e180b2b5eb96ceb162473c0cb196a.tar.xz |
stdio: rename getc to getchar
The function we have implemented as getc has the semantics of the
standard function getchar, so rename it accorgingly.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/console_simple.c')
-rw-r--r-- | common/console_simple.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/console_simple.c b/common/console_simple.c index 69e76593ad..9675cbb0a6 100644 --- a/common/console_simple.c +++ b/common/console_simple.c @@ -48,13 +48,13 @@ int tstc(void) } EXPORT_SYMBOL(tstc); -int getc(void) +int getchar(void) { if (!console) return -EINVAL; return console->getc(console); } -EXPORT_SYMBOL(getc); +EXPORT_SYMBOL(getchar); void console_flush(void) { @@ -67,7 +67,7 @@ EXPORT_SYMBOL(console_flush); /* test if ctrl-c was pressed */ int ctrlc (void) { - if (tstc() && getc() == 3) + if (tstc() && getchar() == 3) return 1; return 0; } |