Clean up io_input() for the "no input available" case
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 10 Mar 2012 10:13:08 +0000 (11:13 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 27 Mar 2012 08:13:05 +0000 (10:13 +0200)
commit0513ec136b8fb7e2c65e18e2a5bbc0ac597b64e9
tree96b3c374eda81f58c815045fefd12e2de72e7871
parent5501efa278d7cc2e9420e84ef6ad84188d28ee9b
Clean up io_input() for the "no input available" case

Return zero when no input is available, regardless of parameter
waitforinput.  Before, it returned -1 with errno set to EAGAIN or
EWOULDBLOCK when not waiting for input.  Current callers all wait.

Drop errno from the function's contract, for consistency with
io_output().
src/lib/empthread/io.c