fhandler_tty_slave::tcflush in fhandler_tty.cc
Vaclav Haisman
V.Haisman@sh.cvut.cz
Sun May 29 00:18:00 GMT 2005
There is a similar problem to the one descibed in my previous post, this time
in fhandler_tty_slave::tcflush, line 1051: ret = len >= 0. This can never be
false, because len is unsigned. And it also seems wrong because tcflush()
should return either 0 on success or -1 on error. The way it is coded it will
return either 0 or 1. Maybe comparison to (size_t) -1 was intended instead?
VH.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list