From: Aki Tuomi Date: Tue, 29 Sep 2015 17:41:02 +0000 (+0300) Subject: Use C++ style cast X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~12^2~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c848cb12daec644545ab2b4dd3c4a895db324577;p=pdns Use C++ style cast --- diff --git a/pdns/dbdnsseckeeper.cc b/pdns/dbdnsseckeeper.cc index 1f69673a5..1ea6e6172 100644 --- a/pdns/dbdnsseckeeper.cc +++ b/pdns/dbdnsseckeeper.cc @@ -450,7 +450,7 @@ bool DNSSECKeeper::getPreRRSIGs(UeberBackend& db, const DNSName& signer, const D // cerr<<"Got it"<(signPlace); rr.ttl = signTTL; rrsigs.push_back(rr); } diff --git a/pdns/dnssecsigner.cc b/pdns/dnssecsigner.cc index 1ca603106..50398e692 100644 --- a/pdns/dnssecsigner.cc +++ b/pdns/dnssecsigner.cc @@ -117,7 +117,7 @@ void addSignature(DNSSECKeeper& dk, UeberBackend& db, const DNSName& signer, con else rr.ttl=signTTL; rr.auth=false; - rr.d_place = (DNSResourceRecord::Place) signPlace; + rr.d_place = static_cast (signPlace); BOOST_FOREACH(RRSIGRecordContent& rrc, rrcs) { rr.content = rrc.getZoneRepresentation(); outsigned.push_back(rr); @@ -230,7 +230,7 @@ void addRRSigs(DNSSECKeeper& dk, UeberBackend& db, const set& authSet, else signTTL = pos->ttl; origTTL = pos->ttl; - signPlace = (DNSPacketWriter::Place) pos->d_place; + signPlace = static_cast(pos->d_place); if(pos->auth || pos->qtype.getCode() == QType::DS) { string content = pos->content; if(!pos->content.empty() && pos->qtype.getCode()==QType::TXT && pos->content[0]!='"') {