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 /commands/edit.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 'commands/edit.c')
-rw-r--r-- | commands/edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/edit.c b/commands/edit.c index c014892fc4..a5415a6e5b 100644 --- a/commands/edit.c +++ b/commands/edit.c @@ -367,7 +367,7 @@ static void getwinsize(void) printf(ESC "7" ESC "[r" ESC "[999;999H" ESC "[6n"); - while ((r = getc()) != 'R') { + while ((r = getchar()) != 'R') { buf[i] = r; i++; } |