aboutsummaryrefslogtreecommitdiff
path: root/qemu-char.c
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2009-06-13 13:05:27 +0200
committerBlue Swirl <blauwirbel@gmail.com>2009-06-13 14:22:03 +0300
commit705032644fb37a516e5072136c1a891d12e6c90e (patch)
treec7f63f056610b73baff5a5ac832b5f6958e5cc12 /qemu-char.c
parentc5b76b381081680633e2e0a91216507430409fb2 (diff)
Win32: Don't remove const attribute in type casts.
Type casts removing the const attribute are bad because they hide the fact that the argument remains const. They also result in a compiler warning (at least with MS-C). Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Diffstat (limited to 'qemu-char.c')
-rw-r--r--qemu-char.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-char.c b/qemu-char.c
index a63d860b83..a8afe94fa7 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -1708,7 +1708,7 @@ static int udp_chr_write(CharDriverState *chr, const uint8_t *buf, int len)
{
NetCharDriver *s = chr->opaque;
- return sendto(s->fd, (void *)buf, len, 0,
+ return sendto(s->fd, (const void *)buf, len, 0,
(struct sockaddr *)&s->daddr, sizeof(struct sockaddr_in));
}