Commit e258d1b6 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

make it compile


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@247 e5f2f494-b856-4b98-b285-d166d9295462
parent 03ef4eee
...@@ -94,16 +94,14 @@ host_lookup(char* name, std::string type) ...@@ -94,16 +94,14 @@ host_lookup(char* name, std::string type)
if ((*it)->getType() != RRType::A) { if ((*it)->getType() != RRType::A) {
continue; continue;
} }
vector<Rdata::IN::A> addresses; std::vector<Rdata::RdataPtr>::const_iterator ait;
// (*it)->getRdatalist<Rdata::IN::A>(addresses); for (ait = (*it)->getRdatalist().begin();
// for (vector<Rdata::IN::A>::const_iterator ait = ait != (*it)->getRdatalist().end();
// ++ait) {
// addresses.begin(); ait != addresses.end(); ++ait) { // this should be in_addr of the address
// static_cast<const Rdata::IN::A&>(**ait).getAddress();
// ait->getAddress(); //this should return in_addr& }
// }
} }
} else { } else {
gettimeofday(&after_time, NULL); gettimeofday(&after_time, NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment