]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Fix ConnSSL_LogCertInfo(): unused variable "cred" (GNUTLS)
authorAlexander Barton <alex@barton.de>
Sun, 19 Oct 2008 18:01:26 +0000 (20:01 +0200)
committerAlexander Barton <alex@barton.de>
Sun, 19 Oct 2008 18:06:30 +0000 (20:06 +0200)
This patch fixes the following warning of GCC (version 4.3.2) in
function ConnSSL_LogCertInfo() when compiling with GNUTLS support:

conn-ssl.c: In function 'ConnSSL_LogCertInfo':
conn-ssl.c:542: warning: unused variable 'cred'

src/ngircd/conn-ssl.c

index 8995adbe4f4e8f8344597833c1d6e7627b4d76dc..5a1000728a7b604753736c0be3f0f98cc02584fc 100644 (file)
@@ -539,7 +539,6 @@ ConnSSL_LogCertInfo( CONNECTION *c )
                SSL_get_version(ssl), SSL_get_cipher(ssl), c->sock);
 #endif
 #ifdef HAVE_LIBGNUTLS
-       gnutls_credentials_type_t cred;
        gnutls_session_t sess = c->ssl_state.gnutls_session;
        gnutls_cipher_algorithm_t cipher = gnutls_cipher_get(sess);