Fix clang-tidy performance-enum-size warnings

This commit is contained in:
Tim Wojtulewicz 2025-04-25 13:42:16 -07:00
parent 11a1d8d506
commit f4c47d0357
9 changed files with 13 additions and 19 deletions

View file

@ -15,11 +15,6 @@
#include "zeek/packet_analysis/protocol/icmp/events.bif.h"
#include "zeek/session/Manager.h"
enum ICMP_EndpointState {
ICMP_INACTIVE, // no packet seen
ICMP_ACTIVE, // packets seen
};
using namespace zeek::packet_analysis::ICMP;
using namespace zeek::packet_analysis::IP;

View file

@ -9,7 +9,7 @@
using namespace zeek::packet_analysis::ICMP;
using namespace zeek::packet_analysis::IP;
enum ICMP_EndpointState {
enum ICMP_EndpointState : uint8_t {
ICMP_INACTIVE, // no packet seen
ICMP_ACTIVE, // packets seen
};

View file

@ -9,7 +9,7 @@
using namespace zeek::packet_analysis::UDP;
using namespace zeek::packet_analysis::IP;
enum UDP_EndpointState {
enum UDP_EndpointState : uint8_t {
UDP_INACTIVE, // no packet seen
UDP_ACTIVE, // packets seen
};