diff options
author | Stefan Weil <weil@mail.berlios.de> | 2009-06-13 13:05:27 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-06-13 14:22:03 +0300 |
commit | 705032644fb37a516e5072136c1a891d12e6c90e (patch) | |
tree | c7f63f056610b73baff5a5ac832b5f6958e5cc12 /net.c | |
parent | c5b76b381081680633e2e0a91216507430409fb2 (diff) | |
download | qemu-705032644fb37a516e5072136c1a891d12e6c90e.zip qemu-705032644fb37a516e5072136c1a891d12e6c90e.tar.gz qemu-705032644fb37a516e5072136c1a891d12e6c90e.tar.bz2 |
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 'net.c')
-rw-r--r-- | net.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1507,7 +1507,7 @@ static ssize_t net_socket_receive_dgram(VLANClientState *vc, const uint8_t *buf, { NetSocketState *s = vc->opaque; - return sendto(s->fd, (void *)buf, size, 0, + return sendto(s->fd, (const void *)buf, size, 0, (struct sockaddr *)&s->dgram_dst, sizeof(s->dgram_dst)); } |