summaryrefslogtreecommitdiff
path: root/tests/dhepskself.c
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2013-08-18 21:45:04 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-08-25 01:32:20 +0300
commit0c382d457fa3d7af102798c2c6cb90919349675d (patch)
tree47e906ab1430a84249b7b4677651b90a800385a7 /tests/dhepskself.c
parent9b3fccf68d34a96585bb4311e7b2d7dd86864e91 (diff)
downloadgnutls-0c382d457fa3d7af102798c2c6cb90919349675d.tar.gz
fix transport parameter casts in tests
Diffstat (limited to 'tests/dhepskself.c')
-rw-r--r--tests/dhepskself.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/dhepskself.c b/tests/dhepskself.c
index ef7373bae2..dcb91fa15e 100644
--- a/tests/dhepskself.c
+++ b/tests/dhepskself.c
@@ -94,7 +94,7 @@ client (int sd)
*/
gnutls_credentials_set (session, GNUTLS_CRD_PSK, pskcred);
- gnutls_transport_set_ptr (session, (gnutls_transport_ptr_t) sd);
+ gnutls_transport_set_int (session, sd);
/* Perform the TLS handshake
*/
@@ -227,7 +227,7 @@ server (int sd)
session = initialize_tls_session ();
- gnutls_transport_set_ptr (session, (gnutls_transport_ptr_t) sd);
+ gnutls_transport_set_int (session, sd);
ret = gnutls_handshake (session);
if (ret < 0)
{