mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00
Fix a few warnings from recent changes
This commit is contained in:
parent
f3f139deab
commit
eb9d851a07
3 changed files with 3 additions and 3 deletions
|
@ -57,7 +57,7 @@ void ScriptProfile::Report(FILE* f, bool with_traces) const
|
||||||
calls += util::fmt("%s|", s.c_str());
|
calls += util::fmt("%s|", s.c_str());
|
||||||
counts += util::fmt("%d|", stats.call_count);
|
counts += util::fmt("%d|", stats.call_count);
|
||||||
cpu += util::fmt("%f|", stats.cpu_time);
|
cpu += util::fmt("%f|", stats.cpu_time);
|
||||||
memory += util::fmt("%llu|", stats.memory);
|
memory += util::fmt("%" PRIu64 "|", stats.memory);
|
||||||
}
|
}
|
||||||
|
|
||||||
calls.pop_back();
|
calls.pop_back();
|
||||||
|
|
|
@ -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
|
// 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
|
// bytes long. Whether this is unnumbered is denoted by the last two bits being
|
||||||
// set.
|
// set.
|
||||||
int llc_header_len = 3;
|
size_t llc_header_len = 3;
|
||||||
if ( (data[2] & 0x03) != 0x03 )
|
if ( (data[2] & 0x03) != 0x03 )
|
||||||
llc_header_len++;
|
llc_header_len++;
|
||||||
|
|
||||||
|
|
|
@ -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
|
// 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
|
// bytes long. Whether this is unnumbered is denoted by the last two bits being
|
||||||
// set.
|
// set.
|
||||||
int llc_header_len = 3;
|
size_t llc_header_len = 3;
|
||||||
if ( (data[2] & 0x03) != 0x03 )
|
if ( (data[2] & 0x03) != 0x03 )
|
||||||
llc_header_len++;
|
llc_header_len++;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue