aboutsummaryrefslogtreecommitdiff
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
commitfe46980c85354e35ccd342b971855d5a028fe181 (patch)
tree0a4a4509172c11df298c76c018009bf4d87e0208
parent0a165d09ccd3b1686bd5d29d1a0a58926776b993 (diff)
downloadslirp-fe46980c85354e35ccd342b971855d5a028fe181.zip
slirp-fe46980c85354e35ccd342b971855d5a028fe181.tar.gz
slirp-fe46980c85354e35ccd342b971855d5a028fe181.tar.bz2
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/slirp.c b/slirp.c
index 8eb5a35..43f1beb 100644
--- a/slirp.c
+++ b/slirp.c
@@ -271,8 +271,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.