]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorAutomatic source maintenance <squidadm@squid-cache.org>
Wed, 28 Nov 2012 01:13:21 +0000 (18:13 -0700)
committerAutomatic source maintenance <squidadm@squid-cache.org>
Wed, 28 Nov 2012 01:13:21 +0000 (18:13 -0700)
lib/profiler/xprof_type.h
src/HelperReply.cc
src/MemBuf.cc

index a6578145b6fc3cccf019c6310ddeddec24a6100c..78db8251f0013d4066abb926ec530f484ef45638 100644 (file)
@@ -15,6 +15,7 @@ typedef enum {
     XPROF_InvokeHandlers,
     XPROF_MemBuf_append,
     XPROF_MemBuf_consume,
+    XPROF_MemBuf_consumeWhitespace,
     XPROF_MemBuf_grow,
     XPROF_MemObject_write,
     XPROF_PROF_OVERHEAD,
index 972d8c8456d8e3507c75208676acf42cd217dc87..2b416c6d70caa78b7bb520f3b20af34cb79a7022 100644 (file)
@@ -118,9 +118,9 @@ void
 HelperReply::parseResponseKeys()
 {
     // parse a "key=value" pair off the 'other()' buffer.
-    while(other().hasContent()) {
+    while (other().hasContent()) {
         char *p = modifiableOther().content();
-        while(*p && *p != '=' && *p != ' ') ++p;
+        while (*p && *p != '=' && *p != ' ') ++p;
         if (*p != '=')
             return; // done. Not a key.
 
index 4777e18fba68af980b06bc563b1025f296cef0ca..222fe3f24bbba936c69cf066e223bb24d4cdfee2 100644 (file)
@@ -227,7 +227,7 @@ void MemBuf::consumeWhitespacePrefix()
     if (contentSize() > 0) {
         const char *end = buf + contentSize();
         const char *p = buf;
-        for(; p<end && xisspace(*p); ++p);
+        for (; p<end && xisspace(*p); ++p);
         if (p-buf > 0)
             consume(p-buf);
     }