main_loop_wait: block indefinitely

- remove qemu_calculate_timeout;

- explicitly size timeout to uint32_t;

- introduce slirp_update_timeout;

- pass NULL as timeout argument to select in case timeout is the maximum
value;

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Paul Brook <paul@codesourcery.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Stefano Stabellini 2012-04-13 19:35:04 +01:00 committed by Anthony Liguori
parent 4ffd16fc29
commit 7c7db75576
8 changed files with 28 additions and 17 deletions

View file

@ -120,7 +120,7 @@ void qemu_bh_delete(QEMUBH *bh)
bh->deleted = 1;
}
void qemu_bh_update_timeout(int *timeout)
void qemu_bh_update_timeout(uint32_t *timeout)
{
QEMUBH *bh;