From adf374eb06ae37e4fb18c6aeef2881cd730adcfc Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 15 May 2013 00:44:52 -0400 Subject: [PATCH] Build Warnings - Eliminated warnings in TLS code. --- src/TLSClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TLSClient.cpp b/src/TLSClient.cpp index b4a540fa8..587badcec 100644 --- a/src/TLSClient.cpp +++ b/src/TLSClient.cpp @@ -156,7 +156,7 @@ void TLSClient::connect (const std::string& host, const std::string& port) if (p == NULL) throw "ERROR: Could not connect to " + host + " " + port; - gnutls_transport_set_ptr (_session, (gnutls_transport_ptr_t) _socket); + gnutls_transport_set_ptr (_session, (gnutls_transport_ptr_t) (long) _socket); // Perform the TLS handshake int ret = gnutls_handshake (_session);