Skip to contentSkip to conversation

[5833] Fix warning from sparse

Qemu-devel Aurelien Jarno 1 participant 1 message Nov 30, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 5833

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5833
Author:   aurel32
Date:     2008-11-30 16:25:05 +0000 (Sun, 30 Nov 2008)

Log Message:
-----------
Fix warning from sparse

Remove unnecessary declaration for errno (this fixes a warning from sparse)

Modified Paths:
--------------
trunk/qemu-char.c

Modified: trunk/qemu-char.c
===================================================================

qemu-char.c +0 -1
@@ -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;