From 9a7f7922cf8f33bc6f162da7787427726ecaee34 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Tue, 17 Mar 2015 12:22:49 +0200 Subject: [PATCH] Fix compiler nits --- pdns/pkcs11signers.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pdns/pkcs11signers.cc b/pdns/pkcs11signers.cc index 7c002d24e0..6e7cb026cc 100644 --- a/pdns/pkcs11signers.cc +++ b/pdns/pkcs11signers.cc @@ -595,7 +595,7 @@ Pkcs11Token::Pkcs11Token(const CK_SLOT_ID& slotId, const std::string& label, CK_ this->f = functions; this->d_logged_in = false; this->d_session = 0; - this->m = PTHREAD_MUTEX_INITIALIZER; + pthread_mutex_init(&(this->m), NULL); Lock l(&m); if ((err = f->C_OpenSession(this->d_slot, CKF_SERIAL_SESSION|CKF_RW_SESSION, 0, 0, &(this->d_session)))) { @@ -768,7 +768,6 @@ std::string PKCS11DNSCryptoKeyEngine::getPublicKeyString() const { }; int PKCS11DNSCryptoKeyEngine::getBits() const { - int bits = -1; boost::shared_ptr d_slot; d_slot = Pkcs11Token::GetToken(d_module, d_slot_id, d_label); if (d_slot->LoggedIn() == false) -- 2.47.2