[exim-cvs] Compiler quietening. Bug 2983

Góra strony
Delete this message
Reply to this message
Autor: Exim Git Commits Mailing List
Data:  
Dla: exim-cvs
Temat: [exim-cvs] Compiler quietening. Bug 2983
Gitweb: https://git.exim.org/exim.git/commitdiff/7ce1ced40351c3cd5982d37ff4ccdb02afd82365
Commit:     7ce1ced40351c3cd5982d37ff4ccdb02afd82365
Parent:     6fdf76d0eae42ce4507fe317f095572100c5d6b8
Author:     Andrew Aitchison <exim@???>
AuthorDate: Mon Mar 13 15:59:23 2023 +0000
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Mon Mar 13 15:59:23 2023 +0000


    Compiler quietening.  Bug 2983
---
 src/src/tls-openssl.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)


diff --git a/src/src/tls-openssl.c b/src/src/tls-openssl.c
index 10b5f2aa5..9d0ab2fdf 100644
--- a/src/src/tls-openssl.c
+++ b/src/src/tls-openssl.c
@@ -1001,7 +1001,7 @@ Returns:    nothing
 */


static void
-info_callback(SSL * s, int where, int ret)
+info_callback(const SSL * s, int where, int ret)
{
DEBUG(D_tls)
{
@@ -1750,13 +1750,13 @@ level. */

DEBUG(D_tls)
{
- SSL_CTX_set_info_callback(ctx, (void (*)())info_callback);
+ SSL_CTX_set_info_callback(ctx, info_callback);
#if defined(EXIM_HAVE_OPESSL_TRACE) && !defined(OPENSSL_NO_SSL_TRACE)
/* this needs a debug build of OpenSSL */
- SSL_CTX_set_msg_callback(ctx, (void (*)())SSL_trace);
+ SSL_CTX_set_msg_callback(ctx, SSL_trace);
#endif
#ifdef OPENSSL_HAVE_KEYLOG_CB
- SSL_CTX_set_keylog_callback(ctx, (void (*)())keylog_callback);
+ SSL_CTX_set_keylog_callback(ctx, keylog_callback);
#endif
}