]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorAutomatic source maintenance <squidadm@squid-cache.org>
Tue, 14 Jun 2011 00:12:35 +0000 (18:12 -0600)
committerAutomatic source maintenance <squidadm@squid-cache.org>
Tue, 14 Jun 2011 00:12:35 +0000 (18:12 -0600)
src/acl/Acl.cc
src/adaptation/Initiate.cc
src/auth/State.h

index 3267826b58db590bec4ea454700392802a437840..316fdbc6bc12d6423a92a50fc40ed063a23efb31 100644 (file)
@@ -130,15 +130,15 @@ ACL::ParseAclLine(ConfigParser &parser, ACL ** head)
     // Is this ACL going to work?
     if (strcmp(theType, "myip") != 0) {
         http_port_list *p = Config.Sockaddr.http;
-        while(p) {
+        while (p) {
             // Bug 3239: not reliable when there is interception traffic coming
             if (p->intercepted)
                 debugs(28, DBG_CRITICAL, "WARNING: 'myip' ACL is not reliable for interception proxies. Please use 'myportname' instead.");
             p = p->next;
         }
-    } else if(strcmp(theType, "myport") != 0) {
+    } else if (strcmp(theType, "myport") != 0) {
         http_port_list *p = Config.Sockaddr.http;
-        while(p) {
+        while (p) {
             // Bug 3239: not reliable when there is interception traffic coming
             // Bug 3239: myport - not reliable (yet) when there is interception traffic coming
             if (p->intercepted)
index 3d034acaf183e17d1867a49dac6ebaa34829ef03..c40dd5bfb95dcd1fce08cbb43f6efda0ac6390ca 100644 (file)
@@ -14,12 +14,13 @@ namespace Adaptation
 typedef UnaryMemFunT<Initiator, Answer, const Answer &> AnswerDialer;
 /// Calls expectNoConsumption() if noteAdaptationAnswer async call is
 /// scheduled but never fired (e.g., because the HTTP transaction aborts).
-class AnswerCall: public AsyncCallT<AnswerDialer>{
+class AnswerCall: public AsyncCallT<AnswerDialer>
+{
 public:
     AnswerCall(const char *aName, const AnswerDialer &aDialer) :
-        AsyncCallT<AnswerDialer>(93, 5, aName, aDialer), fired(false) {}
+            AsyncCallT<AnswerDialer>(93, 5, aName, aDialer), fired(false) {}
     virtual void fire() {
-        fired = true; 
+        fired = true;
         AsyncCallT<AnswerDialer>::fire();
     }
     virtual ~AnswerCall() {
@@ -73,7 +74,7 @@ void Adaptation::Initiate::clearInitiator()
 void Adaptation::Initiate::sendAnswer(const Answer &answer)
 {
     AsyncCall::Pointer call = new AnswerCall("Initiator::noteAdaptationAnswer",
-                                             AnswerDialer(theInitiator, &Initiator::noteAdaptationAnswer, answer));
+            AnswerDialer(theInitiator, &Initiator::noteAdaptationAnswer, answer));
     ScheduleCallHere(call);
     clearInitiator();
 }
index 5361e69f8c6c5727abf28ca983aa95a938b86f79..15f456b3944b27d586ed80777ddc9957c2516d81 100644 (file)
@@ -12,13 +12,13 @@ namespace Auth
 /**
  * CBDATA state for NTLM, Negotiate, and Digest stateful authentication.
  */
-class StateData {
+class StateData
+{
 public:
     StateData(const AuthUserRequest::Pointer &r, RH *h, void *d) :
-        data(cbdataReference(d)),
-        auth_user_request(r),
-        handler(h)
-    {}
+            data(cbdataReference(d)),
+            auth_user_request(r),
+            handler(h) {}
 
     ~StateData() {
         auth_user_request = NULL;