From 1ffb2c7f07ce6fff57ba16d3461e7d297d876c02 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Sat, 15 Mar 2014 19:06:16 +0100 Subject: [PATCH] remove debugging output and some whitespace --- pdns/dnspcap.cc | 3 --- pdns/dnsscope.cc | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) 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; } -- 2.47.3