diff options
author | Gernot Tenchio <gernot@tenchio.de> | 2011-08-25 22:04:34 +0200 |
---|---|---|
committer | Gernot Tenchio <gernot@tenchio.de> | 2011-08-25 22:04:34 +0200 |
commit | e22b7acbc8ec30f8237ac16bbc16a497f7bec908 (patch) | |
tree | 5419990d16d5fcba060f6ffa60c5817fb7e56cb6 | |
parent | 099e5c825101c280c98d5c4f76bb5065b6c41041 (diff) | |
download | libvncserver-e22b7acbc8ec30f8237ac16bbc16a497f7bec908.zip libvncserver-e22b7acbc8ec30f8237ac16bbc16a497f7bec908.tar.gz |
websockets: remove warning on 64bit platforms
-rw-r--r-- | libvncserver/rfbssl_gnutls.c | 2 |
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; |