From dd72bfaa8886b68dca265cdf7191a1bbcb29b3c5 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Sat, 11 Jul 2015 10:17:51 +0200 Subject: [PATCH] DNSName: make dnsdist compile again This moves the implementation of the Logger::operator<<(const DNSName) function to the right place. Freeing dnsdist from having to include the logger. --- pdns/dnsdistdist/.gitignore | 1 + pdns/dnsname.cc | 9 --------- pdns/logger.cc | 7 +++++++ 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/pdns/dnsdistdist/.gitignore b/pdns/dnsdistdist/.gitignore index f87753c6c0..469535229c 100644 --- a/pdns/dnsdistdist/.gitignore +++ b/pdns/dnsdistdist/.gitignore @@ -56,3 +56,4 @@ /sodcrypto.hh /sstuff.hh /stamp-h1 +/compile diff --git a/pdns/dnsname.cc b/pdns/dnsname.cc index 8e953db864..d9bf435fce 100644 --- a/pdns/dnsname.cc +++ b/pdns/dnsname.cc @@ -3,7 +3,6 @@ #include #include "dnswriter.hh" -#include "logger.hh" #include "misc.hh" #include @@ -260,11 +259,3 @@ string DNSName::escapeLabel(const std::string& label) } return ret; } - - -Logger& Logger::operator<<(const DNSName &d) -{ - *this<d_urgency=Info; return *this; } + +Logger& Logger::operator<<(const DNSName &d) +{ + *this<