summaryrefslogtreecommitdiffstats
path: root/libvncserver/rfbssl_gnutls.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvncserver/rfbssl_gnutls.c')
-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 66f4bc8..0689c01 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;