From 1d972b9ab6609aa50c75398e3870a1f7c8565327 Mon Sep 17 00:00:00 2001 From: Automatic source maintenance Date: Tue, 27 Nov 2012 18:13:21 -0700 Subject: [PATCH] SourceFormat Enforcement --- lib/profiler/xprof_type.h | 1 + src/HelperReply.cc | 4 ++-- src/MemBuf.cc | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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); } -- 2.47.3