FIX: tcgetattr for Linux in Ukbhit(), should return -1 if fail.

This commit is contained in:
iceman1001 2016-01-13 00:14:08 +01:00
commit d04b71c168

View file

@ -21,7 +21,7 @@ int ukbhit(void)
int error;
static struct termios Otty, Ntty;
if ( tcgetattr( 0, &Otty) == -1) return false;
if ( tcgetattr( 0, &Otty) == -1) return -1;
Ntty = Otty;
Ntty.c_iflag = 0; /* input mode */