From 039456214620a7837048f940e08661ccecfdb277 Mon Sep 17 00:00:00 2001 From: Automatic source maintenance Date: Sat, 18 Jun 2011 05:43:39 -0600 Subject: [PATCH] SourceFormat Enforcement --- src/acl/Acl.cc | 6 +++--- src/adaptation/Initiate.cc | 9 +++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/acl/Acl.cc b/src/acl/Acl.cc index 3267826b58..316fdbc6bc 100644 --- a/src/acl/Acl.cc +++ b/src/acl/Acl.cc @@ -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) diff --git a/src/adaptation/Initiate.cc b/src/adaptation/Initiate.cc index 83634b85f3..2f7d7c1acd 100644 --- a/src/adaptation/Initiate.cc +++ b/src/adaptation/Initiate.cc @@ -29,11 +29,12 @@ private: /// Calls expectNoConsumption() if noteAdaptationAnswer async call is /// scheduled but never fired (e.g., because the HTTP transaction aborts). -class AnswerCall: public AsyncCallT{ +class AnswerCall: public AsyncCallT +{ AnswerCall(const char *aName, const AnswerDialer &aDialer) : - AsyncCallT(93, 5, aName, aDialer), fired(false) {} + AsyncCallT(93, 5, aName, aDialer), fired(false) {} virtual void fire() { - fired = true; + fired = true; AsyncCallT::fire(); } virtual ~AnswerCall() { @@ -90,7 +91,7 @@ void Adaptation::Initiate::sendAnswer(HttpMsg *msg) { assert(msg); AsyncCall::Pointer call = new AnswerCall("Initiator::noteAdaptationAnswer", - AnswerDialer(theInitiator, &Initiator::noteAdaptationAnswer, answer)); + AnswerDialer(theInitiator, &Initiator::noteAdaptationAnswer, answer)); ScheduleCallHere(call); clearInitiator(); } -- 2.47.2