summaryrefslogtreecommitdiffstats
path: root/common/console_countdown.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/console_countdown.c')
-rw-r--r--common/console_countdown.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/console_countdown.c b/common/console_countdown.c
index ffbdb4fa2d..c0c8c95022 100644
--- a/common/console_countdown.c
+++ b/common/console_countdown.c
@@ -39,7 +39,7 @@ int console_countdown(int timeout_s, unsigned flags, char *out_key)
do {
if (tstc()) {
- key = getc();
+ key = getchar();
if (flags & CONSOLE_COUNTDOWN_ANYKEY)
goto out;
if (flags & CONSOLE_COUNTDOWN_RETURN && key == '\n')