Switch io_close(), io_input() from timeouts to deadlines

All users want deadlines.  Move the conversion from deadline to
timeout from callers to io.c, where it becoems an implementation
detail.
This commit is contained in:
Markus Armbruster 2012-03-11 07:14:24 +01:00
parent 10768189e2
commit ddbcce12c3
5 changed files with 26 additions and 21 deletions

View file

@ -61,7 +61,6 @@ int
recvclient(char *cmd, int size)
{
int count, res;
struct timeval timeout;
count = -1;
while (!player->aborted) {
@ -92,8 +91,7 @@ recvclient(char *cmd, int size)
if (player->aborted)
break;
io_timeout(&timeout, player->curup + minutes(max_idle));
res = io_input(player->iop, &timeout);
res = io_input(player->iop, player->curup + minutes(max_idle));
if (res > 0)
;
else if (res < 0)