aboutsummaryrefslogtreecommitdiff
path: root/qemu-char.c
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-30 16:25:05 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-30 16:25:05 +0000
commitf9487cb94ec1d392cfa97ef239e3c03fdf250ae1 (patch)
tree7b362b6347d5c5d52f92a36735aaf7fdd000cd01 /qemu-char.c
parentd72a19f7bd861390fcd1ddb3cb792a04eca1bedd (diff)
Fix warning from sparse
Remove unnecessary declaration for errno (this fixes a warning from sparse) Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5833 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'qemu-char.c')
-rw-r--r--qemu-char.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/qemu-char.c b/qemu-char.c
index d2335dd609..27cdd325a2 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -452,7 +452,6 @@ int send_all(int fd, const void *buf, int len1)
while (len > 0) {
ret = send(fd, buf, len, 0);
if (ret < 0) {
- int errno;
errno = WSAGetLastError();
if (errno != WSAEWOULDBLOCK) {
return -1;