]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
some trivial whitespace patches uncommitted from old svn checkout
authorbert hubert <bert.hubert@netherlabs.nl>
Fri, 26 Apr 2013 14:57:14 +0000 (16:57 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Fri, 26 Apr 2013 14:57:14 +0000 (16:57 +0200)
pdns/pdns_recursor.cc
pdns/session.cc

index b27ba324b1b5757c5072b7fe8020e3152c4207cd..7d159675aaca20e45842c38daf0248320375e520 100644 (file)
@@ -329,7 +329,7 @@ public:
       return ret;
     
     if(ret<0) 
-      throw AhuException("Making a socket for resolver (family =)"+lexical_cast<string>(family)+"): "+stringerror());
+      throw AhuException("Making a socket for resolver (family = "+lexical_cast<string>(family)+"): "+stringerror());
 
     Utility::setCloseOnExec(ret);
 
index 4b2c4d588f39324082346ec513c2676371a76156..13059abe6b3139a3b8b5174b521c2130ff012dc0 100644 (file)
@@ -99,15 +99,15 @@ bool Session::putLine(const string &s)
   int written=0;
   int err;
 
-  while(written<length)
+  while(written < length)
     {
       err=waitForRWData(clisock, false, d_timeout, 0);
       if(err<=0)
         throw SessionException("nonblocking write failed: "+string(strerror(errno)));
 
-      err=send(clisock,s.c_str()+written,length-written, 0);
+      err = send(clisock, s.c_str() + written, length-written, 0);
 
-      if(err<0)
+      if(err < 0)
         return false;
       
       written+=err;