From e076d627d87e25fa4447fc82033a9104fa7b5676 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Thu, 22 Mar 2012 19:42:13 +0100 Subject: [PATCH] silence warnings. Patch by B. Scott Michel. --- doc/examples/ex-serv-anon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/examples/ex-serv-anon.c b/doc/examples/ex-serv-anon.c index 1d6d54126..75a0bf2bc 100644 --- a/doc/examples/ex-serv-anon.c +++ b/doc/examples/ex-serv-anon.c @@ -114,7 +114,7 @@ main (void) inet_ntop (AF_INET, &sa_cli.sin_addr, topbuf, sizeof (topbuf)), ntohs (sa_cli.sin_port)); - gnutls_transport_set_ptr (session, (gnutls_transport_ptr_t) sd); + gnutls_transport_set_ptr (session, (gnutls_transport_ptr_t) ((ptrdiff_t) sd)); do { -- 2.11.4.GIT