summaryrefslogtreecommitdiff
path: root/lib/gnutls_state.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gnutls_state.c')
-rw-r--r--lib/gnutls_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gnutls_state.c b/lib/gnutls_state.c
index 9ce65ae310..e58ac27f0c 100644
--- a/lib/gnutls_state.c
+++ b/lib/gnutls_state.c
@@ -213,8 +213,8 @@ int gnutls_init(gnutls_session * session, gnutls_connection_end con_end)
/* set the socket pointers to -1;
*/
- (*session)->internals.transport_recv_ptr = -1;
- (*session)->internals.transport_send_ptr = -1;
+ (*session)->internals.transport_recv_ptr = (gnutls_transport_ptr)-1;
+ (*session)->internals.transport_send_ptr = (gnutls_transport_ptr)-1;
/* set the default maximum record size for TLS
*/