From: bert hubert Date: Sat, 15 Mar 2014 18:06:16 +0000 (+0100) Subject: remove debugging output and some whitespace X-Git-Tag: rec-3.6.0-rc1~136 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1ffb2c7f07ce6fff57ba16d3461e7d297d876c02;p=thirdparty%2Fpdns.git remove debugging output and some whitespace --- diff --git a/pdns/dnspcap.cc b/pdns/dnspcap.cc index c5effcc538..cd85edd914 100644 --- a/pdns/dnspcap.cc +++ b/pdns/dnspcap.cc @@ -132,19 +132,16 @@ ComboAddress PcapPacketReader::getDest() const return ret; } - PcapPacketWriter::PcapPacketWriter(const string& fname, PcapPacketReader& ppr) : d_fname(fname), d_ppr(ppr) { d_fp=fopen(fname.c_str(),"w"); if(!d_fp) unixDie("Unable to open file"); - int flags=fcntl(fileno(d_fp),F_GETFL,0); fcntl(fileno(d_fp), F_SETFL,flags&(~O_NONBLOCK)); // bsd needs this in stdin (??) fwrite(&ppr.d_pfh, 1, sizeof(ppr.d_pfh), d_fp); - } void PcapPacketWriter::write() diff --git a/pdns/dnsscope.cc b/pdns/dnsscope.cc index d493db3e48..9315325eee 100644 --- a/pdns/dnsscope.cc +++ b/pdns/dnsscope.cc @@ -204,11 +204,11 @@ try cout<first<<"\t"<second<first<<"\t"<<(sum+=i->second)<<"\n"; + // stats<first<<"\t"<<(sum+=i->second)<<"\n"; totpackets+=i->second; tottime+=i->first*i->second; }