Fix a few warnings from recent changes

This commit is contained in:
Tim Wojtulewicz 2023-04-27 14:53:24 -07:00
parent f3f139deab
commit eb9d851a07
3 changed files with 3 additions and 3 deletions

View file

@ -57,7 +57,7 @@ void ScriptProfile::Report(FILE* f, bool with_traces) const
calls += util::fmt("%s|", s.c_str());
counts += util::fmt("%d|", stats.call_count);
cpu += util::fmt("%f|", stats.cpu_time);
memory += util::fmt("%llu|", stats.memory);
memory += util::fmt("%" PRIu64 "|", stats.memory);
}
calls.pop_back();

View file

@ -18,7 +18,7 @@ bool LLCAnalyzer::AnalyzePacket(size_t len, const uint8_t* data, Packet* packet)
// If the control field doesn't have an unnumbered PDU, the header is actually 4
// bytes long. Whether this is unnumbered is denoted by the last two bits being
// set.
int llc_header_len = 3;
size_t llc_header_len = 3;
if ( (data[2] & 0x03) != 0x03 )
llc_header_len++;

View file

@ -19,7 +19,7 @@ bool SNAPAnalyzer::AnalyzePacket(size_t len, const uint8_t* data, Packet* packet
// If the control field doesn't have an unnumbered PDU, the header is actually 4
// bytes long. Whether this is unnumbered is denoted by the last two bits being
// set.
int llc_header_len = 3;
size_t llc_header_len = 3;
if ( (data[2] & 0x03) != 0x03 )
llc_header_len++;