From d9005dd52df70e84d8807869173f95e59952a88b Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 13 Dec 2014 18:58:08 +0200 Subject: [PATCH] src/gnutls.c (gnutls_init): Fix deprecation warning from GCC. --- src/ChangeLog | 4 ++++ src/gnutls.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index f8790a66d32..6b7abe46eea 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2014-12-13 Eli Zaretskii + + * gnutls.c (gnutls_init): Fix deprecation warning from GCC. + 2014-12-12 Eli Zaretskii * gnutls.c (Fgnutls_available_p, syms_of_gnutls): Move diff --git a/src/gnutls.c b/src/gnutls.c index 247e5c42d48..ffa3c982572 100644 --- a/src/gnutls.c +++ b/src/gnutls.c @@ -121,7 +121,7 @@ DEF_GNUTLS_FN (void, gnutls_global_set_mem_functions, gnutls_is_secure_function, gnutls_realloc_function, gnutls_free_function)); DEF_GNUTLS_FN (int, gnutls_handshake, (gnutls_session_t)); -DEF_GNUTLS_FN (int, gnutls_init, (gnutls_session_t *, gnutls_connection_end_t)); +DEF_GNUTLS_FN (int, gnutls_init, (gnutls_session_t *, unsigned int)); DEF_GNUTLS_FN (int, gnutls_priority_set_direct, (gnutls_session_t, const char *, const char **)); DEF_GNUTLS_FN (size_t, gnutls_record_check_pending, (gnutls_session_t)); -- 2.39.2