diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2004-08-09 13:12:42 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2004-08-09 13:12:42 +0000 |
commit | ffaa9c2685ac672408db3c10de57253e291f2fec (patch) | |
tree | 5ea0445c7a3913e667c4e88efee6074c06a791ca /socket.c | |
parent | 222712b65f01604d6a79fc5096b30ee960f3986a (diff) | |
download | fetchmail-ffaa9c2685ac672408db3c10de57253e291f2fec.tar.gz fetchmail-ffaa9c2685ac672408db3c10de57253e291f2fec.tar.bz2 fetchmail-ffaa9c2685ac672408db3c10de57253e291f2fec.zip |
Safe fixes for compiler warnings.
svn path=/trunk/; revision=3929
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -898,10 +898,9 @@ static int SSL_ck_verify_callback( int ok_return, X509_STORE_CTX *ctx ) int SSLOpen(int sock, char *mycert, char *mykey, char *myproto, int certck, char *certpath, char *fingerprint, char *servercname, char *label) { - SSL *ssl; struct stat randstat; int i; - + SSL_load_error_strings(); SSLeay_add_ssl_algorithms(); @@ -1004,7 +1003,7 @@ int SSLOpen(int sock, char *mycert, char *mykey, char *myproto, int certck, char if ((fingerprint != NULL || certck) && !_depth0ck) { report(stderr, GT_("Certificate/fingerprint verification was somehow skipped!\n")); - if( NULL != ( ssl = SSLGetContext( sock ) ) ) { + if( NULL != SSLGetContext( sock ) ) { /* Clean up the SSL stack */ SSL_free( _ssl_context[sock] ); _ssl_context[sock] = NULL; @@ -1020,9 +1019,7 @@ int SockClose(int sock) /* close a socket gracefully */ { #ifdef SSL_ENABLE - SSL *ssl; - - if( NULL != ( ssl = SSLGetContext( sock ) ) ) { + if( NULL != SSLGetContext( sock ) ) { /* Clean up the SSL stack */ SSL_free( _ssl_context[sock] ); _ssl_context[sock] = NULL; |