]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorAutomatic source maintenance <squidadm@squid-cache.org>
Mon, 28 Jan 2013 01:14:56 +0000 (18:14 -0700)
committerAutomatic source maintenance <squidadm@squid-cache.org>
Mon, 28 Jan 2013 01:14:56 +0000 (18:14 -0700)
src/acl/Acl.cc
src/acl/Acl.h
src/acl/DestinationIp.cc

index 68bd743b7938297de639b4e51dc934639a35869e..37d8ee571f04a2e5142db5e64dac53458daaae4e 100644 (file)
@@ -44,27 +44,26 @@ const ACLFlag ACLFlags::NoFlags[1] = {ACL_F_END};
 
 const char *AclMatchedName = NULL;
 
-bool ACLFlags::supported(const ACLFlag f) const 
+bool ACLFlags::supported(const ACLFlag f) const
 {
     if (f == ACL_F_REGEX_CASE)
         return true;
-    return (supported_.find(f) != std::string::npos); 
+    return (supported_.find(f) != std::string::npos);
 }
 
-void 
+void
 ACLFlags::parseFlags(char * &nextToken)
 {
-    while((nextToken = ConfigParser::strtokFile()) != NULL && nextToken[0] == '-') {
+    while ((nextToken = ConfigParser::strtokFile()) != NULL && nextToken[0] == '-') {
 
         //if token is the "--" break flag
-        if (strcmp(nextToken, "--") == 0) 
+        if (strcmp(nextToken, "--") == 0)
             break;
 
         for (const char *flg = nextToken+1; *flg!='\0'; flg++ ) {
             if (supported(*flg)) {
                 makeSet(*flg);
-            }
-            else {
+            } else {
                 debugs(28, 0, HERE << "Flag '" << *flg << "' not supported");
                 self_destruct();
             }
index 0727ef9c9e36f05596ea877cfece801560c6fe7b..5e19ee4983e3686f4c3300698b5b16dab43e7bdb 100644 (file)
@@ -77,7 +77,7 @@ public:
 private:
     /// Convert a flag to a 64bit unsigned integer.
     /// The characters from 'A' to 'z' represented by the values from 65 to 122.
-    /// They are 57 different characters which can be fit to the bits of an 64bit 
+    /// They are 57 different characters which can be fit to the bits of an 64bit
     /// integer.
     uint64_t flagToInt(const ACLFlag f) const {
         assert('A' <= f && f <= 'z');
@@ -104,7 +104,7 @@ public:
     static ACL* FindByName(const char *name);
 
     ACL();
-    explicit ACL(const ACLFlag flgs[]) : cfgline(NULL), flags(flgs){}
+    explicit ACL(const ACLFlag flgs[]) : cfgline(NULL), flags(flgs) {}
     virtual ~ACL();
     virtual ACL *clone()const = 0;
     virtual void parse() = 0;
index 2dfc602ea37bdaf22ef32db675fcf0fcffbb418f..68ede133a6018fe1e4cf9fa5609ffb51ca90f5c2 100644 (file)
@@ -67,7 +67,7 @@ ACLDestinationIP::match(ACLChecklist *cl)
             return 0;
         }
 
-        if(ACLIP::match(checklist->request->host_addr))
+        if (ACLIP::match(checklist->request->host_addr))
             return 1;
         return 0;
     }