diff options
author | Stefan Bühler <stbuehler@web.de> | 2013-08-18 21:45:04 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-08-25 01:32:20 +0300 |
commit | 0c382d457fa3d7af102798c2c6cb90919349675d (patch) | |
tree | 47e906ab1430a84249b7b4677651b90a800385a7 /tests/mini-dtls-hello-verify.c | |
parent | 9b3fccf68d34a96585bb4311e7b2d7dd86864e91 (diff) | |
download | gnutls-0c382d457fa3d7af102798c2c6cb90919349675d.tar.gz |
fix transport parameter casts in tests
Diffstat (limited to 'tests/mini-dtls-hello-verify.c')
-rw-r--r-- | tests/mini-dtls-hello-verify.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/mini-dtls-hello-verify.c b/tests/mini-dtls-hello-verify.c index fd45258f68..534d8a6178 100644 --- a/tests/mini-dtls-hello-verify.c +++ b/tests/mini-dtls-hello-verify.c @@ -110,7 +110,7 @@ client (int fd) */ gnutls_credentials_set (session, GNUTLS_CRD_ANON, anoncred); - gnutls_transport_set_ptr (session, (gnutls_transport_ptr_t) fd); + gnutls_transport_set_int (session, fd); gnutls_transport_set_push_function (session, push); /* Perform the TLS handshake @@ -223,7 +223,7 @@ gnutls_session_t session; gnutls_credentials_set (session, GNUTLS_CRD_ANON, anoncred); - gnutls_transport_set_ptr (session, (gnutls_transport_ptr_t) fd); + gnutls_transport_set_int (session, fd); gnutls_transport_set_push_function (session, push); for (;;) @@ -241,7 +241,7 @@ gnutls_session_t session; { if (debug) success("Sending hello verify request\n"); - ret = gnutls_dtls_cookie_send(&cookie_key, CLI_ADDR, CLI_ADDR_LEN, &prestate, (gnutls_transport_ptr_t)fd, push); + ret = gnutls_dtls_cookie_send(&cookie_key, CLI_ADDR, CLI_ADDR_LEN, &prestate, (gnutls_transport_ptr_t)(long)fd, push); if (ret < 0) { fail("Cannot send data\n"); |