From: Bert Hubert Date: Thu, 1 Nov 2012 13:26:32 +0000 (+0000) Subject: whitespace X-Git-Tag: auth-3.2-rc1~40 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=90e631d99e545ff936eb4012a72700c646859d5a;p=thirdparty%2Fpdns.git whitespace git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2842 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/packetcache.cc b/pdns/packetcache.cc index 43f78ff5c9..a9b029415f 100644 --- a/pdns/packetcache.cc +++ b/pdns/packetcache.cc @@ -27,7 +27,7 @@ extern StatBag S; PacketCache::PacketCache() { - pthread_rwlock_init(&d_mut,0); + pthread_rwlock_init(&d_mut, 0); // d_ops = 0; d_ttl=-1; diff --git a/pdns/qtype.cc b/pdns/qtype.cc index e8e2519d82..35d422b65d 100644 --- a/pdns/qtype.cc +++ b/pdns/qtype.cc @@ -60,8 +60,8 @@ int QType::chartocode(const char *p) { static QType qt; vector::iterator pos; - for(pos=names.begin();posfirst==p) + for(pos=names.begin(); pos < names.end(); ++pos) + if(pos->first == p) return pos->second; if(*p=='#') {