Greg Steuck <gne...@openbsd.org> wrote: > Thanks for the patch. > > I could see some value in tightening the conditions to always check > `!= expected`. I don't see enough improvement from separating the error > case of -1 from the incomplete read case considering the otherwise > identical behavior.
Hmm, that is a valid point. We want this code to be as simple as possible, and the effect of these errors is identical.