Fix C89 warning in src/openssl.c

This commit is contained in:
Gisle Vanem 2014-12-03 20:23:54 +01:00 committed by Tim Ruehsen
parent 11c6dcb705
commit aeca2c33c0
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,8 @@
2014-11-20 Gisle Vanem <gvanem@yahoo.no>
2014-12-03 Gisle Vanem <gvanem@yahoo.no>
* openssl.c (ssl_init): Fix C89 warning
2014-12-03 Gisle Vanem <gvanem@yahoo.no>
* mswindows.c (ws_cleanup): Fix compiler error

View File

@ -170,6 +170,7 @@ bool
ssl_init (void)
{
SSL_METHOD const *meth;
long ssl_options = 0;
#if OPENSSL_VERSION_NUMBER >= 0x00907000
if (ssl_true_initialized == 0)
@ -203,8 +204,6 @@ ssl_init (void)
SSLeay_add_all_algorithms ();
SSLeay_add_ssl_algorithms ();
long ssl_options = 0;
switch (opt.secure_protocol)
{
#ifndef OPENSSL_NO_SSL2