This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fhandler_tty_slave::tcflush in fhandler_tty.cc


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]