From: Mukund Sivaraman Date: Sun, 26 Aug 2012 22:37:44 +0000 (+0530) Subject: [2165] Rename variables X-Git-Tag: trac2351_base~110^2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3afbf54cd0bb69ea6b56015735825d42dd4dfd15;p=thirdparty%2Fkea.git [2165] Rename variables --- diff --git a/src/bin/auth/tests/query_unittest.cc b/src/bin/auth/tests/query_unittest.cc index ab3359b96c..603bf5c3b6 100644 --- a/src/bin/auth/tests/query_unittest.cc +++ b/src/bin/auth/tests/query_unittest.cc @@ -485,10 +485,10 @@ protected: isc::dns::ConstRRsetPtr rrset, FindResultFlags flags = RESULT_DEFAULT) { - ConstRRsetPtr rr = stripRRsigs(rrset, options); + ConstRRsetPtr rp = stripRRsigs(rrset, options); return (ZoneFinderContextPtr( new Context(*this, options, - ResultContext(code, rr, flags)))); + ResultContext(code, rp, flags)))); } private: diff --git a/src/lib/datasrc/memory_datasrc.cc b/src/lib/datasrc/memory_datasrc.cc index e4ef97fc4d..e38a48725e 100644 --- a/src/lib/datasrc/memory_datasrc.cc +++ b/src/lib/datasrc/memory_datasrc.cc @@ -854,13 +854,13 @@ private: // in case the caller has the same RRset but as a result // of normal find() and needs to know they are of the same // kind; otherwise we simply use the stored RBNodeRRset. - ConstRRsetPtr rr; + ConstRRsetPtr rp; if (wild_expanded) { - rr = found->second->getUnderlyingRRset(); + rp = found->second->getUnderlyingRRset(); } else { - rr = found->second; + rp = found->second; } - result.push_back(ZoneFinder::stripRRsigs(rr, options)); + result.push_back(ZoneFinder::stripRRsigs(rp, options)); } } } diff --git a/src/lib/datasrc/zone.h b/src/lib/datasrc/zone.h index 15a949d704..3ca1043ca0 100644 --- a/src/lib/datasrc/zone.h +++ b/src/lib/datasrc/zone.h @@ -137,17 +137,17 @@ public: /// \brief A helper function to strip RRSIGs when FIND_DNSSEC is not /// requested. static isc::dns::ConstRRsetPtr - stripRRsigs(isc::dns::ConstRRsetPtr rr, const FindOptions options) { - if (rr) { - isc::dns::ConstRRsetPtr sig_rrset = rr->getRRsig(); + stripRRsigs(isc::dns::ConstRRsetPtr rp, const FindOptions options) { + if (rp) { + isc::dns::ConstRRsetPtr sig_rrset = rp->getRRsig(); if (sig_rrset && ((options & ZoneFinder::FIND_DNSSEC) == 0)) { isc::dns::RRsetPtr result_base - (new isc::dns::RRset(rr->getName(), - rr->getClass(), - rr->getType(), - rr->getTTL())); - for (isc::dns::RdataIteratorPtr i(rr->getRdataIterator()); + (new isc::dns::RRset(rp->getName(), + rp->getClass(), + rp->getType(), + rp->getTTL())); + for (isc::dns::RdataIteratorPtr i(rp->getRdataIterator()); !i->isLast(); i->next()) { result_base->addRdata(i->getCurrent()); @@ -157,7 +157,7 @@ public: } } - return (rr); + return (rp); } /// \brief Context of the result of a find() call.