This is the mail archive of the
cygwin
mailing list for the Cygwin project.
fhandler_tty_slave::tcflush in fhandler_tty.cc
- From: Vaclav Haisman <V dot Haisman at sh dot cvut dot cz>
- To: cygwin at cygwin dot com
- Date: Sat, 28 May 2005 23:38:05 +0200 (CEST)
- Subject: fhandler_tty_slave::tcflush in fhandler_tty.cc
- Reply-to: cygwin at cygwin dot com
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/