]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorAutomatic source maintenance <squidadm@squid-cache.org>
Thu, 5 Nov 2009 01:12:55 +0000 (18:12 -0700)
committerAutomatic source maintenance <squidadm@squid-cache.org>
Thu, 5 Nov 2009 01:12:55 +0000 (18:12 -0700)
lib/rfc1738.c
src/acl/DestinationDomain.cc

index 59781156e05bf7b113f399d81d518f4cb8666535..a769e60eb649dc41bba73d641a1276fde2d091cd 100644 (file)
@@ -177,7 +177,7 @@ rfc1738_escape_part(const char *url)
  *  rfc1738_unescape() - Converts escaped characters (%xy numbers) in
  *  given the string.  %% is a %. %ab is the 8-bit hexadecimal number "ab"
  */
-static inline int 
+static inline int
 fromhex(char ch)
 {
     if (ch >= '0' && ch <= '9')
@@ -203,13 +203,13 @@ rfc1738_unescape(char *s)
             /* decode */
             char v1, v2;
             v1 = fromhex(s[j + 1]);
-           if (v1 < 0)
-               continue;  /* non-hex or \0 */
+            if (v1 < 0)
+                continue;  /* non-hex or \0 */
             v2 = fromhex(s[j + 2]);
-           if (v2 < 0)
-               continue;  /* non-hex or \0 */
-           s[i] = v1 << 4 | v2;
-           j += 2;
+            if (v2 < 0)
+                continue;  /* non-hex or \0 */
+            s[i] = v1 << 4 | v2;
+            j += 2;
         }
     }
     s[i] = '\0';
index 30d2af88472fa0a755d674a342d0f166d05e94ad..5d765343d196d5eff98319dbe7585f98bcfe81db 100644 (file)
@@ -81,7 +81,7 @@ ACLDestinationDomainStrategy::match (ACLData<MatchType> * &data, ACLFilledCheckl
     }
 
     /* numeric IPA? no, trust the above result. */
-    if(checklist->request->GetHostIsNumeric() == 0) {
+    if (checklist->request->GetHostIsNumeric() == 0) {
         return 0;
     }