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 --- vnc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vnc.c') diff --git a/vnc.c b/vnc.c index 109c2f34e3..e1ca9f8c75 100644 --- a/vnc.c +++ b/vnc.c @@ -961,7 +961,7 @@ long vnc_client_write_buf(VncState *vs, const uint8_t *data, size_t datalen) } } else #endif /* CONFIG_VNC_TLS */ - ret = send(vs->csock, (void *)data, datalen, 0); + ret = send(vs->csock, (const void *)data, datalen, 0); VNC_DEBUG("Wrote wire %p %zd -> %ld\n", data, datalen, ret); return vnc_client_io_error(vs, ret, socket_error()); } -- cgit v1.2.1