From 705032644fb37a516e5072136c1a891d12e6c90e Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 13 Jun 2009 13:05:27 +0200 Subject: 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 --- net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net.c') diff --git a/net.c b/net.c index 58d68b5cf0..af9de7334d 100644 --- a/net.c +++ b/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)); } -- cgit v1.2.1