summaryrefslogtreecommitdiff
path: root/libextra
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-11-13 11:30:28 +0100
committerSimon Josefsson <simon@josefsson.org>2008-11-13 11:30:28 +0100
commitde24f84bc6e87cbe4193207977435698f5293790 (patch)
tree2f3673aaf25c1ea2711757b208121b5fc19cedfc /libextra
parenta1a5180ed4f5aa302aecf5232f06624fac162132 (diff)
downloadgnutls-de24f84bc6e87cbe4193207977435698f5293790.tar.gz
Fix warning.
Diffstat (limited to 'libextra')
-rw-r--r--libextra/gnutls_openssl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libextra/gnutls_openssl.c b/libextra/gnutls_openssl.c
index f64eef47d3..cbf928c0e5 100644
--- a/libextra/gnutls_openssl.c
+++ b/libextra/gnutls_openssl.c
@@ -911,7 +911,8 @@ X509_free (const X509 * cert)
void
BIO_get_fd (gnutls_session_t gnutls_state, int *fd)
{
- *fd = GNUTLS_POINTER_TO_INT (gnutls_transport_get_ptr (gnutls_state));
+ gnutls_transport_ptr_t tmp = gnutls_transport_get_ptr (gnutls_state);
+ *fd = GNUTLS_POINTER_TO_INT (tmp);
}
BIO *