qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel][PATCH] Fix warning from sparse
@ 2008-11-30 14:18 Stefan Weil
  2008-11-30 16:26 ` Aurelien Jarno
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Weil @ 2008-11-30 14:18 UTC (permalink / raw)
  To: QEMU Developers

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

Signed-off-by: Stefan Weil <weil@mail.berlios.de>

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;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel][PATCH] Fix warning from sparse
  2008-11-30 14:18 [Qemu-devel][PATCH] Fix warning from sparse Stefan Weil
@ 2008-11-30 16:26 ` Aurelien Jarno
  0 siblings, 0 replies; 2+ messages in thread
From: Aurelien Jarno @ 2008-11-30 16:26 UTC (permalink / raw)
  To: qemu-devel

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 <weil@mail.berlios.de>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-30 16:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-30 14:18 [Qemu-devel][PATCH] Fix warning from sparse Stefan Weil
2008-11-30 16:26 ` Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).