From: Automatic source maintenance Date: Wed, 28 Nov 2012 01:13:21 +0000 (-0700) Subject: SourceFormat Enforcement X-Git-Tag: SQUID_3_4_0_1~470 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1d972b9ab6609aa50c75398e3870a1f7c8565327;p=thirdparty%2Fsquid.git SourceFormat Enforcement --- diff --git a/lib/profiler/xprof_type.h b/lib/profiler/xprof_type.h index a6578145b6..78db8251f0 100644 --- a/lib/profiler/xprof_type.h +++ b/lib/profiler/xprof_type.h @@ -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, diff --git a/src/HelperReply.cc b/src/HelperReply.cc index 972d8c8456..2b416c6d70 100644 --- a/src/HelperReply.cc +++ b/src/HelperReply.cc @@ -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. diff --git a/src/MemBuf.cc b/src/MemBuf.cc index 4777e18fba..222fe3f24b 100644 --- a/src/MemBuf.cc +++ b/src/MemBuf.cc @@ -227,7 +227,7 @@ void MemBuf::consumeWhitespacePrefix() if (contentSize() > 0) { const char *end = buf + contentSize(); const char *p = buf; - for(; p 0) consume(p-buf); }