summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-14 01:42:43 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-14 01:42:43 +0000
commit5ce8762572ab81e92e24735c3bffcf0991111f57 (patch)
tree78069902814936b66fe735e9852c52930e4f6e12 /src/modules/extra
parentc190d28aad7485cfc9a34d8b89beb3270720338a (diff)
Experimental change to avoid warning on 64bit systems, this is a simple one-line rollback if anyone has trouble (but it fixes the warning bugging me ;p) - Works on AMD64 Linux
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3712 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp
index 5155b4f6c..9aec909c4 100644
--- a/src/modules/extra/m_ssl_gnutls.cpp
+++ b/src/modules/extra/m_ssl_gnutls.cpp
@@ -248,7 +248,13 @@ class ModuleSSLGnuTLS : public Module
gnutls_credentials_set(session->sess, GNUTLS_CRD_CERTIFICATE, x509_cred);
gnutls_certificate_server_set_request(session->sess, GNUTLS_CERT_REQUEST); // Request client certificate if any.
gnutls_dh_set_prime_bits(session->sess, dh_bits);
- gnutls_transport_set_ptr(session->sess, (gnutls_transport_ptr_t) fd); // Give gnutls the fd for the socket.
+
+ /* This is an experimental change to avoid a warning on 64bit systems about casting between integer and pointer of different sizes
+ * This needs testing, but it's easy enough to rollback if need be
+ * Old: gnutls_transport_set_ptr(session->sess, (gnutls_transport_ptr_t) fd); // Give gnutls the fd for the socket.
+ */
+
+ gnutls_transport_set_ptr(session->sess, &fd); // Give gnutls the fd for the socket.
Handshake(session);
}
@@ -606,4 +612,3 @@ extern "C" void * init_module( void )
{
return new ModuleSSLGnuTLSFactory;
}
-