summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-04-14 08:48:59 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-04-15 12:21:46 +0200
commit01f8f60cf06e180b2b5eb96ceb162473c0cb196a (patch)
treeb792cbe498d9143e263704f7ce3fa79031790bdf /include
parent70bbeea7b227866bdbdef0b249ff7f8644713f15 (diff)
downloadbarebox-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 'include')
-rw-r--r--include/stdio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 5334531849..1ead0e6e00 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -28,7 +28,7 @@ int tstc(void);
/* stdout */
void console_putc(unsigned int ch, const char c);
-int getc(void);
+int getchar(void);
int console_puts(unsigned int ch, const char *s);
void console_flush(void);
@@ -44,7 +44,7 @@ static inline int console_puts(unsigned int ch, const char *str)
return 0;
}
-static inline int getc(void)
+static inline int getchar(void)
{
return -EINVAL;
}