mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
Fix clang-tidy performance-enum-size warnings in headers
This commit is contained in:
parent
89ac0cb418
commit
f386deba94
76 changed files with 184 additions and 136 deletions
|
@ -29,7 +29,12 @@ private:
|
|||
zeek::detail::Discarder* discarder = nullptr;
|
||||
};
|
||||
|
||||
enum class ParseResult { Ok = 0, CaplenTooSmall = -1, BadProtocol = -2, CaplenTooLarge = 1 };
|
||||
enum class ParseResult : int8_t {
|
||||
CaplenTooSmall = -1,
|
||||
BadProtocol = -2,
|
||||
Ok = 0,
|
||||
CaplenTooLarge = 1,
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns a wrapper IP_Hdr object if \a pkt appears to be a valid IPv4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue