* fhandler_tty.cc (fhandler_tty_slave::tcflush): Return either 0 or -1.

This commit is contained in:
Corinna Vinschen
2005-08-05 16:11:21 +00:00
parent 8cba692063
commit c8f07ce787
2 changed files with 5 additions and 1 deletions

View File

@ -1051,7 +1051,7 @@ fhandler_tty_slave::tcflush (int queue)
{
size_t len = UINT_MAX;
read (NULL, len);
ret = ((int) len) >= 0;
ret = ((int) len) >= 0 ? 0 : -1;
}
if (queue == TCOFLUSH || queue == TCIOFLUSH)
{