Skip to contentSkip to conversation

Fix warning from sparse

PATCH Applied Stefan Weil 2 participants 2 messages Nov 30, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix warning from sparse

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

qemu-char.c (Arbeitskopie) renamed from qemu-char.c (Revision 5818) +0 -1
Index: qemu-char.c
===================================================================
@@ -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;
#1 lore raw
Quoted 3 lines · Stefan Weil

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

Thanks, applied.

Quoted 16 lines

Index: qemu-char.c
===================================================================

qemu-char.c (Arbeitskopie) renamed from qemu-char.c (Revision 5818) +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;
Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net