From 07e276ab2e351ce71b709139f1933b9ead40d094 Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Fri, 24 Sep 2021 14:36:54 -0700 Subject: [PATCH] clang-format: A few minor comment-spacing fixes --- src/Dict.cc | 4 ++-- src/analyzer/protocol/rpc/RPC.cc | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Dict.cc b/src/Dict.cc index 7f2cc2d7a8..3be737328a 100644 --- a/src/Dict.cc +++ b/src/Dict.cc @@ -1239,7 +1239,7 @@ void Dictionary::InsertRelocateAndAdjust(detail::DictEntry& entry, int insert_po // range if the changed range straddles over remap_end. if ( Remapping() && insert_position <= remap_end && remap_end < last_affected_position ) { //[i,j] range changed. if map_end in between. then possibly old entry pushed down across - //map_end. + // map_end. remap_end = last_affected_position; // adjust to j on the conservative side. } @@ -1498,7 +1498,7 @@ void Dictionary::Remap() if ( ! table[remap_end].Empty() && Remap(remap_end) ) left--; else //< successful Remap may increase remap_end in the case of SizeUp due to insert. if so, - //remap_end need to be worked on again. + // remap_end need to be worked on again. remap_end--; } if ( remap_end < 0 ) diff --git a/src/analyzer/protocol/rpc/RPC.cc b/src/analyzer/protocol/rpc/RPC.cc index 735fc95a19..f06d996313 100644 --- a/src/analyzer/protocol/rpc/RPC.cc +++ b/src/analyzer/protocol/rpc/RPC.cc @@ -658,8 +658,9 @@ void Contents_RPC::DeliverStream(int len, const u_char* data, bool orig) last_frag = (marker & 0x80000000) != 0; marker &= 0x7fffffff; // printf("%.6f %d marker= %u <> last_frag= %d <> expected=%llu <> - // processed= %llu <> len = %d\n", run_state::network_time, IsOrig(), marker, - //last_frag, msg_buf.GetExpected(), msg_buf.GetProcessed(), len); + // processed= %llu <> len = %d\n", run_state::network_time, IsOrig(), + // marker, + // last_frag, msg_buf.GetExpected(), msg_buf.GetProcessed(), len); if ( ! msg_buf.AddToExpected(marker) ) Conn()->Weird("RPC_message_too_long",