From 01f8f60cf06e180b2b5eb96ceb162473c0cb196a Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 14 Apr 2016 08:48:59 +0200 Subject: 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 --- commands/mmc_extcsd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commands/mmc_extcsd.c') diff --git a/commands/mmc_extcsd.c b/commands/mmc_extcsd.c index d05128c6e7..fa4e29c3da 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; -- cgit v1.2.3