]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorAutomatic source maintenance <squidadm@squid-cache.org>
Wed, 13 Jan 2010 01:13:17 +0000 (18:13 -0700)
committerAutomatic source maintenance <squidadm@squid-cache.org>
Wed, 13 Jan 2010 01:13:17 +0000 (18:13 -0700)
src/client_side.cc
src/comm/AcceptLimiter.h
src/comm/ListenStateData.cc
src/comm/ListenStateData.h
src/ftp.cc

index 3c4fda6804e978a6bfb4523237f20c52b0be45ec..61f1a76083cd0fb7a211f5bd933cd3a4b8df549b 100644 (file)
@@ -3362,7 +3362,7 @@ clientHttpConnectionsOpen(void)
             continue;
 
         AsyncCall::Pointer call = commCbCall(5,5, "SomeCommAcceptHandler(httpAccept)",
-                                         CommAcceptCbPtrFun(httpAccept, s));
+                                             CommAcceptCbPtrFun(httpAccept, s));
 
         s->listener = new Comm::ListenStateData(fd, call, true);
 
@@ -3416,7 +3416,7 @@ clientHttpsConnectionsOpen(void)
             continue;
 
         AsyncCall::Pointer call = commCbCall(5,5, "SomeCommAcceptHandler(httpsAccept)",
-                                         CommAcceptCbPtrFun(httpsAccept, s));
+                                             CommAcceptCbPtrFun(httpsAccept, s));
 
         s->listener = new Comm::ListenStateData(fd, call, true);
 
index 4af96bfd25a2b5ace20c1210c976af524d1a426f..57313b142c1161af76df115a2495e663bfe803fa 100644 (file)
@@ -3,7 +3,8 @@
 
 #include "Array.h"
 
-namespace Comm {
+namespace Comm
+{
 
 class ListenStateData;
 
index 5e90c69f55d2525c221f3b68cd1fa5502efb91ff..8f6e481d4f903ade8a0c09d309c94c5472e0739d 100644 (file)
@@ -83,9 +83,9 @@ Comm::ListenStateData::setListen()
 }
 
 Comm::ListenStateData::ListenStateData(int aFd, AsyncCall::Pointer &call, bool accept_many) :
-    fd(aFd),
-    theCallback(call),
-    mayAcceptMore(accept_many)
+        fd(aFd),
+        theCallback(call),
+        mayAcceptMore(accept_many)
 {
     assert(aFd >= 0);
     debugs(5, 5, HERE << "FD " << fd << " AsyncCall: " << call);
@@ -119,8 +119,7 @@ Comm::ListenStateData::doAccept(int fd, void *data)
 
     if (!okToAccept()) {
         AcceptLimiter::Instance().defer(afd);
-    }
-    else {
+    } else {
         afd->acceptNext();
     }
     commSetSelect(fd, COMM_SELECT_READ, Comm::ListenStateData::doAccept, afd, 0);
@@ -210,7 +209,7 @@ Comm::ListenStateData::notify(int newfd, comm_err_t errcode, int xerrno, const C
 }
 
 /**
- * accept() and process 
+ * accept() and process
  * Wait for an incoming connection on FD.
  */
 int
index a349d648b156fedd370db00bb155dc945dfb3f9f..c7bdc7be2dd822998382a573970aa86c015b1216 100644 (file)
@@ -10,7 +10,8 @@
 
 class ConnectionDetail;
 
-namespace Comm {
+namespace Comm
+{
 
 class ListenStateData
 {
index 45dca5ab8fc25593b6e4dc4682240c5dd3f023b3..fe97f65403404f72a04dabec7aaccf216694e49f 100644 (file)
@@ -3959,8 +3959,7 @@ FtpChannel::close()
         comm_remove_close_handler(fd, closer);
         closer = NULL;
         fd = -1;
-    }
-    else if (fd >= 0) {
+    } else if (fd >= 0) {
         comm_remove_close_handler(fd, closer);
         closer = NULL;
         comm_close(fd); // we do not expect to be called back