Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L6p7i-0007Le-5S for qemu-devel@nongnu.org; Sun, 30 Nov 2008 11:26:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L6p7h-0007LH-Es for qemu-devel@nongnu.org; Sun, 30 Nov 2008 11:26:17 -0500 Received: from [199.232.76.173] (port=44945 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6p7h-0007LC-8t for qemu-devel@nongnu.org; Sun, 30 Nov 2008 11:26:17 -0500 Received: from hall.aurel32.net ([88.191.82.174]:43474) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L6p7g-0007YV-TD for qemu-devel@nongnu.org; Sun, 30 Nov 2008 11:26:17 -0500 Received: from aurel32 by hall.aurel32.net with local (Exim 4.63) (envelope-from ) id 1L6p7a-0003a7-84 for qemu-devel@nongnu.org; Sun, 30 Nov 2008 17:26:10 +0100 Date: Sun, 30 Nov 2008 17:26:10 +0100 From: Aurelien Jarno Subject: Re: [Qemu-devel][PATCH] Fix warning from sparse Message-ID: <20081130162610.GB11797@hall.aurel32.net> References: <4932A0B4.8090907@mail.berlios.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <4932A0B4.8090907@mail.berlios.de> Sender: Aurelien Jarno Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Sun, Nov 30, 2008 at 03:18:28PM +0100, Stefan Weil wrote: > Remove unnecessary declaration for errno (this fixes a warning from sparse) > > Signed-off-by: Stefan Weil Thanks, applied. > Index: qemu-char.c > =================================================================== > --- qemu-char.c (Revision 5818) > +++ qemu-char.c (Arbeitskopie) > @@ -452,7 +452,6 @@ > while (len > 0) { > ret = send(fd, buf, len, 0); > if (ret < 0) { > - int errno; > errno = WSAGetLastError(); > if (errno != WSAEWOULDBLOCK) { > return -1; > > > > -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net