From 86fcadb85da04bc4e8bf7546cd0aabe98efbd008 Mon Sep 17 00:00:00 2001 From: David Leadbeater Date: Thu, 26 Jun 2014 00:34:25 +0100 Subject: Add some missing casts to silence compiler warnings --- src/core/network-openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/network-openssl.c') diff --git a/src/core/network-openssl.c b/src/core/network-openssl.c index 6a0d078c..768fd540 100644 --- a/src/core/network-openssl.c +++ b/src/core/network-openssl.c @@ -477,7 +477,7 @@ static GIOChannel *irssi_ssl_get_iochannel(GIOChannel *handle, int port, SERVER_ } SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2); SSL_CTX_set_default_passwd_cb(ctx, get_pem_password_callback); - SSL_CTX_set_default_passwd_cb_userdata(ctx, mypass); + SSL_CTX_set_default_passwd_cb_userdata(ctx, (void *)mypass); if (mycert && *mycert) { char *scert = NULL, *spkey = NULL; -- cgit v1.2.3