From bb8106cebddaeb33dc61b10ad84a27e8684c4b06 Mon Sep 17 00:00:00 2001 From: bgermann Date: Wed, 29 Aug 2018 19:50:41 +0200 Subject: [PATCH] Fix local variable conflict for older compilers [GB.NCURSES] * Fix local variable conflict for older compilers --- gb.ncurses/src/c_input.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gb.ncurses/src/c_input.c b/gb.ncurses/src/c_input.c index 7d8b21de2..384fe0009 100644 --- a/gb.ncurses/src/c_input.c +++ b/gb.ncurses/src/c_input.c @@ -102,22 +102,22 @@ void INPUT_drain() flushinp(); } -static int INPUT_get_ncurses(int timeout) +static int INPUT_get_ncurses(int time_out) { int ret; - if (timeout >= 0) - timeout(timeout); + if (time_out >= 0) + timeout(time_out); ret = getch(); if (ret == ERR) { /* Had a timeout, the manual doesn't define any errors to happen for wgetch() besides NULL pointer arguments. The only source of ERR is timeout expired. */ - if (timeout >= 0) + if (time_out >= 0) ret = 0; } - if (timeout >= 0) + if (time_out >= 0) timeout(-1); return ret; }