Commit 426e3e6c authored by Jan Kiszka's avatar Jan Kiszka
Browse files

slirp: clean up slirp_update_timeout



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

Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
parent a42e9c41
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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.