summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2013-08-28 19:12:15 +0200
committerJan Kiszka <jan.kiszka@siemens.com>2013-09-17 12:26:05 +0200
commit426e3e6ce1abdb0d85faefbfac3cf4dcc7f224a3 (patch)
treeea3d2989295d83c9ecf80f765ac56d2099587b1d
parenta42e9c41888bc6a5446ef6bd95745c9fd023f107 (diff)
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>
-rw-r--r--slirp/slirp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/slirp/slirp.c b/slirp/slirp.c
index fe16367db8..bad8dad02e 100644
--- a/slirp/slirp.c
+++ b/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.