From e2ad0cfece491e30288b4cc668a00abaa8939c4c Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Fri, 7 Nov 2014 21:31:24 -0600 Subject: [PATCH] wmbiff: Fix cast to pointer from integer of different size compiler warning. --- wmbiff/wmbiff/tlsComm.c | 2 +- wmbiff/wmbiff/tlsComm.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wmbiff/wmbiff/tlsComm.c b/wmbiff/wmbiff/tlsComm.c index a99afa8..478b555 100644 --- a/wmbiff/wmbiff/tlsComm.c +++ b/wmbiff/wmbiff/tlsComm.c @@ -539,7 +539,7 @@ tls_check_certificate(struct connection_state *scs, return; } -struct connection_state *initialize_gnutls(int sd, char *name, Pop3 pc, +struct connection_state *initialize_gnutls(intptr_t sd, char *name, Pop3 pc, const char *remote_hostname) { static int gnutls_initialized; diff --git a/wmbiff/wmbiff/tlsComm.h b/wmbiff/wmbiff/tlsComm.h index 26fa43c..15ffa4a 100644 --- a/wmbiff/wmbiff/tlsComm.h +++ b/wmbiff/wmbiff/tlsComm.h @@ -9,6 +9,7 @@ */ /* used to drill through per-mailbox debug keys */ +#include #include "Client.h" /* opaque reference to the state associated with a @@ -19,7 +20,7 @@ struct connection_state; /* take a socket descriptor and negotiate a TLS connection over it */ /*@only@*/ -struct connection_state *initialize_gnutls(int sd, /*@only@ */ char *name, +struct connection_state *initialize_gnutls(intptr_t sd, /*@only@ */ char *name, Pop3 pc, const char *hostname); /* take a socket descriptor and bundle it into a connection -- 2.11.4.GIT