diff options
author | lns <matzeton@googlemail.com> | 2019-10-14 00:49:20 +0200 |
---|---|---|
committer | lns <matzeton@googlemail.com> | 2019-10-14 00:49:20 +0200 |
commit | de76e325f4644c6191b4eae7559fd577f7636059 (patch) | |
tree | 6df16d7557fd28899f83f2235e845475700b8418 | |
parent | 1892cc6ef12ff1648b6adf925a12ce76a2f42cef (diff) | |
parent | fcf4582f7967ae17b33bf8649ba55cc73bafc1d3 (diff) |
Merge branch 'master' of ssh://git.lan:/git/tools
-rw-r--r-- | dummyshell.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dummyshell.c b/dummyshell.c index db69fb1..eb43206 100644 --- a/dummyshell.c +++ b/dummyshell.c @@ -108,7 +108,7 @@ static void printQuitLoop(void) { } #define I_CLEARBUF 0x1 -static char readInput(char* buf, size_t* siz, size_t szMax, char key, int flags) { +static char readInput(char* buf, size_t* siz, size_t szMax, int key, int flags) { if (flags & I_CLEARBUF) { memset(&buf[0], '\0', szMax); *siz = 0; @@ -634,7 +634,7 @@ int main(int argc, char** argv) curInput = 0; #endif } else if (FD_ISSET(STDIN_FILENO, &fds)) { - char key = getchar(); + int key = getchar(); switch (state) { case MS_DEFAULT: #ifdef FLOOD_PROTECTION |