summaryrefslogtreecommitdiff
path: root/src/serv.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-02-16 09:53:03 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-02-16 09:56:10 +0100
commit1216eabdcb81b9d13fb3c422b411a8c1cd700ee7 (patch)
tree8aa3e61e9e8d7a2cfb9b18f4767ba8591fd73d27 /src/serv.c
parentb24ab4e5c7219c4d5b4ae3255fad31a8731c9e69 (diff)
downloadgnutls-1216eabdcb81b9d13fb3c422b411a8c1cd700ee7.tar.gz
Added convenience functions to avoid ugly casting in simple programs.
Diffstat (limited to 'src/serv.c')
-rw-r--r--src/serv.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/serv.c b/src/serv.c
index 3fc9845c0d..5bab0bc31b 100644
--- a/src/serv.c
+++ b/src/serv.c
@@ -1296,9 +1296,7 @@ tcp_server (const char *name, int port)
j->fd = accept_fd;
j->tls_session = tls_session;
- gnutls_transport_set_ptr (tls_session,
- (gnutls_transport_ptr_t)
- gl_fd_to_handle (accept_fd));
+ gnutls_transport_set_ptr (tls_session, accept_fd);
j->handshake_ok = 0;
if (verbose != 0)