diff options
author | stfn <stfnmd@gmail.com> | 2012-10-18 22:36:52 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2012-10-18 22:36:52 +0200 |
commit | c2b26972da8bfc152ac635d74f329a1c48a44a52 (patch) | |
tree | 5098cc1335ea2cb055adb7b58386380681759a8b /src/core | |
parent | ed506558e82da74cf9d9ac0bd0ae87ddf822bd8b (diff) | |
download | weechat-c2b26972da8bfc152ac635d74f329a1c48a44a52.zip |
core: fix gnutls warnings
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/wee-network.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/wee-network.c b/src/core/wee-network.c index 184bd5ea2..d07b6f163 100644 --- a/src/core/wee-network.c +++ b/src/core/wee-network.c @@ -57,7 +57,7 @@ int network_init_ok = 0; #ifdef HAVE_GNUTLS -gnutls_certificate_credentials gnutls_xcred; /* GnuTLS client credentials */ +gnutls_certificate_credentials_t gnutls_xcred; /* GnuTLS client credentials */ #endif @@ -1388,7 +1388,7 @@ network_connect_child_read_cb (void *arg_hook_connect, int fd) fcntl (HOOK_CONNECT(hook_connect, sock), F_SETFL, HOOK_CONNECT(hook_connect, handshake_fd_flags) | O_NONBLOCK); gnutls_transport_set_ptr (*HOOK_CONNECT(hook_connect, gnutls_sess), - (gnutls_transport_ptr) ((ptrdiff_t) HOOK_CONNECT(hook_connect, sock))); + (gnutls_transport_ptr_t) ((ptrdiff_t) HOOK_CONNECT(hook_connect, sock))); if (HOOK_CONNECT(hook_connect, gnutls_dhkey_size) > 0) { gnutls_dh_set_prime_bits (*HOOK_CONNECT(hook_connect, gnutls_sess), @@ -1555,7 +1555,7 @@ network_connect_with_fork (struct t_hook *hook_connect) GNUTLS_CRD_CERTIFICATE, gnutls_xcred); gnutls_transport_set_ptr (*HOOK_CONNECT(hook_connect, gnutls_sess), - (gnutls_transport_ptr) ((unsigned long) HOOK_CONNECT(hook_connect, sock))); + (gnutls_transport_ptr_t) ((unsigned long) HOOK_CONNECT(hook_connect, sock))); } #endif |