summaryrefslogtreecommitdiffstats
path: root/commands/mmc_extcsd.c
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 /commands/mmc_extcsd.c
parent70bbeea7b227866bdbdef0b249ff7f8644713f15 (diff)
downloadbarebox-01f8f60cf06e180b2b5eb96ceb162473c0cb196a.tar.gz
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/mmc_extcsd.c')
-rw-r--r--commands/mmc_extcsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/mmc_extcsd.c b/commands/mmc_extcsd.c
index d05128c..fa4e29c 100644
--- a/commands/mmc_extcsd.c
+++ b/commands/mmc_extcsd.c
@@ -1867,14 +1867,14 @@ static int request_write_operation(void)
int c;
printf("This is a one time programmable field!\nDo you want to write? [y/N] ");
- c = getc();
+ c = getchar();
/* default is N */
if (c == 0xD) {
printf("\n");
return 0;
}
printf("%c", c);
- getc(); /* wait for carriage return */
+ getchar(); /* wait for carriage return */
printf("\n");
if (c == 'y' || c == 'Y')
return 1;