diff --git a/src/ScriptProfile.cc b/src/ScriptProfile.cc index e96f1bf328..b4647b2d18 100644 --- a/src/ScriptProfile.cc +++ b/src/ScriptProfile.cc @@ -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(); diff --git a/src/packet_analysis/protocol/llc/LLC.cc b/src/packet_analysis/protocol/llc/LLC.cc index 81f839f189..69bd6343e3 100644 --- a/src/packet_analysis/protocol/llc/LLC.cc +++ b/src/packet_analysis/protocol/llc/LLC.cc @@ -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++; diff --git a/src/packet_analysis/protocol/snap/SNAP.cc b/src/packet_analysis/protocol/snap/SNAP.cc index 9edf7028da..fe773c7d06 100644 --- a/src/packet_analysis/protocol/snap/SNAP.cc +++ b/src/packet_analysis/protocol/snap/SNAP.cc @@ -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++;