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 --- qemu-char.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qemu-char.c') diff --git a/qemu-char.c b/qemu-char.c index a63d860..a8afe94 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)); } -- cgit v1.1