mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Use fixed types in NetbiosSSN.h and Timer.h instead of bit fields
This commit is contained in:
parent
0c55b01ec9
commit
a463c5763f
2 changed files with 13 additions and 15 deletions
|
@ -12,7 +12,7 @@ extern "C" {
|
|||
}
|
||||
|
||||
// If you add a timer here, adjust TimerNames in Timer.cc.
|
||||
enum TimerType {
|
||||
enum TimerType : uint8_t {
|
||||
TIMER_BACKDOOR,
|
||||
TIMER_BREAKPOINT,
|
||||
TIMER_CONN_DELETE,
|
||||
|
@ -51,8 +51,7 @@ class ODesc;
|
|||
|
||||
class Timer : public PQ_Element {
|
||||
public:
|
||||
Timer(double t, TimerType arg_type) : PQ_Element(t)
|
||||
{ type = (char) arg_type; }
|
||||
Timer(double t, TimerType arg_type) : PQ_Element(t), type(arg_type) { }
|
||||
~Timer() override { }
|
||||
|
||||
TimerType Type() const { return (TimerType) type; }
|
||||
|
@ -66,8 +65,7 @@ public:
|
|||
|
||||
protected:
|
||||
Timer() {}
|
||||
|
||||
unsigned int type:8;
|
||||
TimerType type;
|
||||
};
|
||||
|
||||
class TimerMgr {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue