]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorAutomatic source maintenance <squidadm@squid-cache.org>
Thu, 3 Mar 2011 01:18:42 +0000 (18:18 -0700)
committerAutomatic source maintenance <squidadm@squid-cache.org>
Thu, 3 Mar 2011 01:18:42 +0000 (18:18 -0700)
src/anyp/ProtocolType.h
src/mgr/Inquirer.cc
src/mgr/IntParam.cc
src/mgr/QueryParams.cc
src/mgr/StringParam.cc
tools/cachemgr.cc

index 769541f6dd2a10ceb1cf7209b0951960301f964e..8a43b39fadc18ed7150f49e7e75ccbf94928133f 100644 (file)
@@ -5,7 +5,8 @@
 #include <ostream>
 #endif
 
-namespace AnyP {
+namespace AnyP
+{
 
 /**
  * List of all protocols known and supported.
index 3a604d43510d3d235427537e3f097ffeebdd2298..93a731709069e08d37696c5f18c7c1cb8e3ee734 100644 (file)
@@ -77,8 +77,7 @@ Mgr::Inquirer::start()
         std::auto_ptr<HttpReply> reply(err->BuildHttpReply());
         replyBuf.reset(reply->pack());
         errorStateFree(err);
-    }
-    else {
+    } else {
         std::auto_ptr<HttpReply> reply(new HttpReply);
         reply->setHeaders(HTTP_OK, NULL, "text/plain", -1, squid_curtime, squid_curtime);
         reply->header.putStr(HDR_CONNECTION, "close"); // until we chunk response
@@ -151,8 +150,7 @@ Mgr::Inquirer::applyQueryParams(const Ipc::StrandCoords& aStrands, const QueryPa
             if (param != NULL && param->type == QueryParam::ptInt) {
                 const std::vector<int>& processes = param->value();
                 for (Ipc::StrandCoords::const_iterator iter = aStrands.begin();
-                     iter != aStrands.end(); ++iter)
-                {
+                        iter != aStrands.end(); ++iter) {
                     if (std::find(processes.begin(), processes.end(), iter->kidId) != processes.end())
                         strands.push_back(*iter);
                 }
@@ -161,8 +159,7 @@ Mgr::Inquirer::applyQueryParams(const Ipc::StrandCoords& aStrands, const QueryPa
             IntParam* param = dynamic_cast<IntParam*>(workersParam.getRaw());
             if (param != NULL && param->type == QueryParam::ptInt) {
                 const std::vector<int>& workers = param->value();
-                for (int i = 0; i < (int)aStrands.size(); ++i)
-                {
+                for (int i = 0; i < (int)aStrands.size(); ++i) {
                     if (std::find(workers.begin(), workers.end(), i + 1) != workers.end())
                         strands.push_back(aStrands[i]);
                 }
index d67382d92640230b7b42d22276419e569071f839..70418aa791578d7511853dfa175d83b96f2a804c 100644 (file)
 
 
 Mgr::IntParam::IntParam():
-    QueryParam(QueryParam::ptInt), array()
+        QueryParam(QueryParam::ptInt), array()
 {
 }
 
 Mgr::IntParam::IntParam(const std::vector<int>& anArray):
-    QueryParam(QueryParam::ptInt), array(anArray)
+        QueryParam(QueryParam::ptInt), array(anArray)
 {
 }
 
index 45cbb033ce0bbc2af46b372cca8ab45c38f2c618..fc1e165f2b2e3e3778cf86648e697032767188a8 100644 (file)
@@ -123,7 +123,7 @@ Mgr::QueryParams::Parse(const String& aParamsStr, QueryParams& aParams)
 Mgr::QueryParam::Pointer
 Mgr::QueryParams::CreateParam(QueryParam::Type aType)
 {
-    switch(aType) {
+    switch (aType) {
     case QueryParam::ptInt:
         return new IntParam();
 
index 2f82d9d2b8fb974ce240b2f75d5ea1b69febb1a5..358b0ea022c7dc93a943783a017bc66ee5b1746b 100644 (file)
 
 
 Mgr::StringParam::StringParam():
-    QueryParam(QueryParam::ptString), str()
+        QueryParam(QueryParam::ptString), str()
 {
 }
 
 Mgr::StringParam::StringParam(const String& aString):
-    QueryParam(QueryParam::ptString), str(aString)
+        QueryParam(QueryParam::ptString), str(aString)
 {
 }
 
index 2c5cf70e43a3399f5dc699161776c4f766f76e86..4f52a157a6edf34bea33446f0fa5046ae6f13a67 100644 (file)
@@ -1013,9 +1013,9 @@ read_request(void)
             req->pub_auth = xstrdup(q), decode_pub_auth(req);
         else if (0 == strcasecmp(t, "operation"))
             req->action = xstrdup(q);
-        else if(0 == strcasecmp(t, "workers") && strlen(q))
+        else if (0 == strcasecmp(t, "workers") && strlen(q))
             req->workers = xstrdup(q);
-         else if(0 == strcasecmp(t, "processes") && strlen(q))
+        else if (0 == strcasecmp(t, "processes") && strlen(q))
             req->processes = xstrdup(q);
     }