summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGernot Tenchio <gernot@tenchio.de>2011-08-25 22:04:34 +0200
committerGernot Tenchio <gernot@tenchio.de>2011-08-25 22:04:34 +0200
commite22b7acbc8ec30f8237ac16bbc16a497f7bec908 (patch)
tree5419990d16d5fcba060f6ffa60c5817fb7e56cb6
parent099e5c825101c280c98d5c4f76bb5065b6c41041 (diff)
downloadlibvncserver-e22b7acbc8ec30f8237ac16bbc16a497f7bec908.zip
libvncserver-e22b7acbc8ec30f8237ac16bbc16a497f7bec908.tar.gz
websockets: remove warning on 64bit platforms
-rw-r--r--libvncserver/rfbssl_gnutls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvncserver/rfbssl_gnutls.c b/libvncserver/rfbssl_gnutls.c
index 09cc89e..33e076e 100644
--- a/libvncserver/rfbssl_gnutls.c
+++ b/libvncserver/rfbssl_gnutls.c
@@ -60,7 +60,7 @@ static int rfbssl_init_session(struct rfbssl_ctx *ctx, int fd)
/* */
} else {
gnutls_session_enable_compatibility_mode(session);
- gnutls_transport_set_ptr(session, (gnutls_transport_ptr_t)fd);
+ gnutls_transport_set_ptr(session, (gnutls_transport_ptr_t)(uintptr_t)fd);
ctx->session = session;
}
return ret;
OpenPOWER on IntegriCloud