summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-03-22 19:42:13 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-03-22 19:51:54 +0100
commite076d627d87e25fa4447fc82033a9104fa7b5676 (patch)
treec27693e486efe14b04c0a77260108591b63501ff
parent90f7007defed1a9b710e9c98792dfcfc20c8d60e (diff)
downloadgnutls-e076d627d87e25fa4447fc82033a9104fa7b5676.tar.gz
silence warnings. Patch by B. Scott Michel.
-rw-r--r--doc/examples/ex-serv-anon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/ex-serv-anon.c b/doc/examples/ex-serv-anon.c
index 1d6d54126c..75a0bf2bc3 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
{