* fhandler_tty.cc (fhandler_tty_slave:tcflush): Use signed comparison.

This commit is contained in:
Christopher Faylor 2005-05-29 00:05:49 +00:00
parent 03bb8acaa7
commit 5c0a13d486
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-05-28 Christopher Faylor <cgf@timesys.com>
* fhandler_tty.cc (fhandler_tty_slave:tcflush): Use signed comparison.
2005-05-28 Christopher Faylor <cgf@timesys.com> 2005-05-28 Christopher Faylor <cgf@timesys.com>
* times.cc (time_ms::usecs): Coerce comparison to signed or whole test * times.cc (time_ms::usecs): Coerce comparison to signed or whole test

View File

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