=== modified file 'plugins.d/mandos-client.c' --- plugins.d/mandos-client.c 2011-12-31 23:05:34 +0000 +++ plugins.d/mandos-client.c 2012-05-24 18:45:45 +0000 @@ -41,7 +41,7 @@ #include /* fprintf(), stderr, fwrite(), stdout, ferror(), remove() */ -#include /* uint16_t, uint32_t */ +#include /* uint16_t, uint32_t, intptr_t */ #include /* NULL, size_t, ssize_t */ #include /* free(), EXIT_SUCCESS, srand(), strtof(), abort() */ @@ -821,8 +821,11 @@ goto mandos_end; } - /* Spurious warning from -Wint-to-pointer-cast */ - gnutls_transport_set_ptr(session, (gnutls_transport_ptr_t) tcp_sd); + /* This casting via intptr_t is to eliminate warning about casting + an int to a pointer type. This is exactly how the GnuTLS Guile + function "set-session-transport-fd!" does it. */ + gnutls_transport_set_ptr(session, + (gnutls_transport_ptr_t)(intptr_t)tcp_sd); if(quit_now){ errno = EINTR;