return RCode::FormErr;
if (rr->d_class == QClass::IN) {
- rrSetKey_t key = make_pair(stripDot(rr->d_label), rr->d_type);
+ rrSetKey_t key = make_pair(stripDot(rr->d_label), QType(rr->d_type));
rrVector_t *vec = &preReqRRsets[key];
vec->push_back(DNSResourceRecord(*rr));
}
string compilerVersion()
{
#if defined(__clang__)
- return string("clang "__clang_version__);
+ return string("clang " __clang_version__);
#elif defined(__GNUC__)
- return string("gcc "__VERSION__);
+ return string("gcc " __VERSION__);
#else // add other compilers here
return string("Unknown compiler");
#endif
void showProductVersion()
{
- theL()<<Logger::Warning<<productName()<<" "<<PDNS_VERSION<<" ("DIST_HOST") "
+ theL()<<Logger::Warning<<productName()<<" "<<PDNS_VERSION<< " (" DIST_HOST") "
"(C) 2001-2015 PowerDNS.COM BV" << endl;
theL()<<Logger::Warning<<"Using "<<(sizeof(unsigned long)*8)<<"-bits mode. "
- "Built on "BUILD_DATE" by "BUILD_HOST", "<<compilerVersion()<<"."<<endl;
+ "Built on " BUILD_DATE" by " BUILD_HOST", "<<compilerVersion()<<"."<<endl;
theL()<<Logger::Warning<<"PowerDNS comes with ABSOLUTELY NO WARRANTY. "
"This is free software, and you are welcome to redistribute it "
"according to the terms of the GPL version 2." << endl;
string fullVersionString()
{
ostringstream s;
- s<<productName()<<" "PDNS_VERSION" ("DIST_HOST" built "BUILD_DATE" "BUILD_HOST")";
+ s<<productName()<<" " PDNS_VERSION" (" DIST_HOST" built " BUILD_DATE" " BUILD_HOST")";
return s.str();
}
}
// always set these headers
- resp.headers["Server"] = "PowerDNS/"VERSION;
+ resp.headers["Server"] = "PowerDNS/" VERSION;
resp.headers["Connection"] = "close";
if (req.method == "HEAD") {