mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
c5b76b3810
commit
705032644f
3 changed files with 3 additions and 3 deletions
2
net.c
2
net.c
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue