Browse Source

slirp: clean up slirp_update_timeout

No need to write out the timeout early, keep it local until we are done.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
pull/8/head
Jan Kiszka 13 years ago
parent
commit
426e3e6ce1
  1. 4
      slirp/slirp.c

4
slirp/slirp.c

@ -270,8 +270,8 @@ static void slirp_update_timeout(uint32_t *timeout)
if (*timeout <= TIMEOUT_FAST) {
return;
}
*timeout = MIN(1000, *timeout);
t = *timeout;
t = MIN(1000, *timeout);
/* If we have tcp timeout with slirp, then we will fill @timeout with
* more precise value.

Loading…
Cancel
Save