]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorAutomatic source maintenance <squidadm@squid-cache.org>
Thu, 28 Oct 2010 00:17:18 +0000 (18:17 -0600)
committerAutomatic source maintenance <squidadm@squid-cache.org>
Thu, 28 Oct 2010 00:17:18 +0000 (18:17 -0600)
doc/debug-sections.txt
src/HttpRequest.cc
src/MemBlob.cc
src/MemBlob.h
src/store.cc

index 5966a87046968367ef18ec88d9c3c282734dac78..70254fdb0529e6290ec32390a3afc91cc1df37a6 100644 (file)
@@ -50,7 +50,6 @@ section 21    Time Functions
 section 22    Refresh Calculation
 section 23    URL Parsing
 section 23    URL Scheme parsing
-section 24    Low-level String-Buffer functions
 section 25    MIME Parsing and Internal Icons
 section 25    MiME Header Parsing
 section 26    Secure Sockets Layer Proxy
index acac10511ce0ae521ed43f710e204c139bf18869..4cd07fdaade048dfe719d14e9851d1babae40c3b 100644 (file)
@@ -598,8 +598,8 @@ bool
 HttpRequest::conditional() const
 {
     return flags.ims ||
-        header.has(HDR_IF_MATCH) ||
-        header.has(HDR_IF_NONE_MATCH);
+           header.has(HDR_IF_MATCH) ||
+           header.has(HDR_IF_NONE_MATCH);
 }
 
 bool HttpRequest::inheritProperties(const HttpMsg *aMsg)
index 40b934582254e8a2295dffdc2144889563411d4e..ad16dbef44b5d6a092c7e001450d7c31d5315757 100644 (file)
@@ -102,8 +102,8 @@ MemBlob::~MemBlob()
 
     debugs(MEMBLOB_DEBUGSECTION,9, HERE << "destructed, this="
            << static_cast<void*>(this) << " id=" << id
-            << " capacity=" << capacity
-            << " size=" << size);
+           << " capacity=" << capacity
+           << " size=" << size);
 }
 
 /**
@@ -159,7 +159,7 @@ MemBlob::memAlloc(const size_type minSize)
 
 void
 MemBlob::append(const char *source, const size_type n)
-{   
+{
     if (n > 0) { // appending zero bytes is allowed but only affects the stats
         Must(willFit(n));
         Must(source);
index f4ea42decd1ef0773ab5d4531b2da32d76f99a92..51b46d51f6373f14e87ed128eeeda628d11377e3 100644 (file)
@@ -56,7 +56,7 @@ public:
 
 /** Refcountable, fixed-size, content-agnostic memory buffer.
  *
- * Allocated memory block is divided into two sequential areas: 
+ * Allocated memory block is divided into two sequential areas:
  * "used memory" and "available space". The used area can be filled during
  * construction, grows via the append() call, and can be clear()ed.
  *
@@ -91,8 +91,7 @@ public:
      * \param off    the end of the blob area currently used by the caller
      * \param n      the total number of bytes the caller wants to append
      */
-    bool canAppend(const size_type off, const size_type n) const
-    {
+    bool canAppend(const size_type off, const size_type n) const {
         // TODO: ignore offset (and adjust size) when the blob is not shared?
         return isAppendOffset(off) && willFit(n);
     }
index ba9955da292a5d9fecbcfe471234e6960c13b1fa..c4671d1aeed0843541ce838029f38005a344f6d5 100644 (file)
@@ -1917,7 +1917,7 @@ StoreEntry::hasIfNoneMatchEtag(const HttpRequest &request) const
     const String reqETags = request.header.getList(HDR_IF_NONE_MATCH);
     // weak comparison is allowed only for HEAD or full-body GET requests
     const bool allowWeakMatch = !request.flags.range &&
-        (request.method == METHOD_GET || request.method == METHOD_HEAD);
+                                (request.method == METHOD_GET || request.method == METHOD_HEAD);
     return hasOneOfEtags(reqETags, allowWeakMatch);
 }
 
@@ -1942,7 +1942,7 @@ StoreEntry::hasOneOfEtags(const String &reqETags, const bool allowWeakMatch) con
             ETag reqETag;
             if (etagParseInit(&reqETag, str.termedBuf())) {
                 matched = allowWeakMatch ? etagIsWeakEqual(repETag, reqETag) :
-                    etagIsStrongEqual(repETag, reqETag);
+                          etagIsStrongEqual(repETag, reqETag);
             }
         }
     }