diff --git a/src/DFA.cc b/src/DFA.cc index c2ac56b616..9de8c025c9 100644 --- a/src/DFA.cc +++ b/src/DFA.cc @@ -2,8 +2,6 @@ #include "zeek/DFA.h" -#include "zeek/zeek-config.h" - #include "zeek/Desc.h" #include "zeek/EquivClass.h" #include "zeek/Hash.h" diff --git a/src/DFA.h b/src/DFA.h index e44fa05b22..7944a6053f 100644 --- a/src/DFA.h +++ b/src/DFA.h @@ -18,7 +18,7 @@ class DFA_Machine; // Transitions to the uncomputed state indicate that we haven't yet // computed the state to go to. -#define DFA_UNCOMPUTED_STATE -2 +#define DFA_UNCOMPUTED_STATE (-2) #define DFA_UNCOMPUTED_STATE_PTR ((DFA_State*)DFA_UNCOMPUTED_STATE) class DFA_State : public Obj { diff --git a/src/analyzer/protocol/ssl/SSL.cc b/src/analyzer/protocol/ssl/SSL.cc index 8a4718dab7..b6a3043a21 100644 --- a/src/analyzer/protocol/ssl/SSL.cc +++ b/src/analyzer/protocol/ssl/SSL.cc @@ -6,7 +6,6 @@ #include #include "zeek/Reporter.h" -#include "zeek/analyzer/Manager.h" #include "zeek/analyzer/protocol/ssl/events.bif.h" #include "zeek/analyzer/protocol/ssl/ssl_pac.h" #include "zeek/analyzer/protocol/ssl/tls-handshake_pac.h" @@ -276,7 +275,7 @@ bool SSL_Analyzer::TryDecryptApplicationData(int len, const u_char* data, bool i // FIXME: should we change types here? const u_char* encrypted = data; - size_t encrypted_len = len; + int encrypted_len = len; if ( is_orig ) c_seq++;