wmbiff: Fix cast to pointer from integer of different size compiler warning.

This commit is contained in:
Doug Torrance 2014-11-07 21:31:24 -06:00 committed by Carlos R. Mafra
parent 5280405ca6
commit e2ad0cfece
2 changed files with 3 additions and 2 deletions

View file

@ -539,7 +539,7 @@ tls_check_certificate(struct connection_state *scs,
return; 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) const char *remote_hostname)
{ {
static int gnutls_initialized; static int gnutls_initialized;

View file

@ -9,6 +9,7 @@
*/ */
/* used to drill through per-mailbox debug keys */ /* used to drill through per-mailbox debug keys */
#include <stdint.h>
#include "Client.h" #include "Client.h"
/* opaque reference to the state associated with a /* opaque reference to the state associated with a
@ -19,7 +20,7 @@ struct connection_state;
/* take a socket descriptor and negotiate a TLS connection /* take a socket descriptor and negotiate a TLS connection
over it */ over it */
/*@only@*/ /*@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); Pop3 pc, const char *hostname);
/* take a socket descriptor and bundle it into a connection /* take a socket descriptor and bundle it into a connection