Permalink
Browse files

Fix compiler nits

  • Loading branch information...
1 parent 91c8351 commit c5ababd6557db1b1515846384907f83f2a8c26ab @cmouse cmouse committed with cmouse Mar 17, 2015
Showing with 1 addition and 2 deletions.
  1. +1 −2 pdns/pkcs11signers.cc
@@ -593,7 +593,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)))) {
@@ -766,7 +766,6 @@ std::string PKCS11DNSCryptoKeyEngine::getPublicKeyString() const {
};
int PKCS11DNSCryptoKeyEngine::getBits() const {
- int bits = -1;
boost::shared_ptr<Pkcs11Token> d_slot;
d_slot = Pkcs11Token::GetToken(d_module, d_slot_id, d_label);
if (d_slot->LoggedIn() == false)

0 comments on commit c5ababd

Please sign in to comment.