diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2013-08-28 19:12:15 +0200 |
---|---|---|
committer | Jan Kiszka <jan.kiszka@siemens.com> | 2013-09-17 12:26:05 +0200 |
commit | fe46980c85354e35ccd342b971855d5a028fe181 (patch) | |
tree | 0a4a4509172c11df298c76c018009bf4d87e0208 | |
parent | 0a165d09ccd3b1686bd5d29d1a0a58926776b993 (diff) | |
download | slirp-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. |