From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLsra-0003OD-Qk for qemu-devel@nongnu.org; Tue, 17 Sep 2013 06:50:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLsrU-000095-Cm for qemu-devel@nongnu.org; Tue, 17 Sep 2013 06:50:34 -0400 Received: from david.siemens.de ([192.35.17.14]:29973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLsrU-00008b-30 for qemu-devel@nongnu.org; Tue, 17 Sep 2013 06:50:28 -0400 From: Jan Kiszka Date: Tue, 17 Sep 2013 12:50:25 +0200 Message-Id: <426e3e6ce1abdb0d85faefbfac3cf4dcc7f224a3.1379415024.git.jan.kiszka@siemens.com> In-Reply-To: References: In-Reply-To: References: Subject: [Qemu-devel] [PATCH 4/4] slirp: clean up slirp_update_timeout List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori , qemu-devel No need to write out the timeout early, keep it local until we are done. Signed-off-by: Jan Kiszka --- slirp/slirp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slirp/slirp.c b/slirp/slirp.c index fe16367..bad8dad 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. -- 1.8.1.1.298.ge7eed54