* fhandler_tty.cc (fhandler_tty_slave:tcflush): Use signed comparison.
This commit is contained in:
parent
03bb8acaa7
commit
5c0a13d486
@ -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
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user