]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
fixed xcode warnings
authorRuss Combs <rucombs@cisco.com>
Sat, 23 Aug 2014 20:24:32 +0000 (16:24 -0400)
committerRuss Combs <rucombs@cisco.com>
Sat, 23 Aug 2014 20:24:32 +0000 (16:24 -0400)
ChangeLog
src/actions/act_replace.cc
src/loggers/alert_test.cc
tools/snort2lua/preprocessor_states/pps_stream_tcp.cc

index 492762b01cc6d2efff662d92e44e094b5f98097e..7e383ed767fd3e3389fa9c3db5052960f769304a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,7 @@
 -- deleted profile.rules.file and profile.modules.file
 -- deleted alerts.alert_file
 -- changed --help to just cmd line options and added --help!
+-- fixed Xcode warnings
 
 115
 -- remove share.h
index e1ac578d76d167dd3b7874831f93aa1b1af1c6a7..3cba768eab51f833c80d2f155c9db00f37ec8b60 100644 (file)
@@ -139,9 +139,6 @@ public:
     ReplaceAction(ReplaceModule*);
 
     void exec(Packet*);
-
-private:
-    unsigned flags;
 };
 
 ReplaceAction::ReplaceAction(ReplaceModule*) : 
index 37af2e82bd8ead9cc6fda71a3dfd846a3980c985..f3c80a9771bcd64ab7518f6fa3b7bd8b0d2dfa57 100644 (file)
@@ -181,7 +181,7 @@ void TestLogger::alert(Packet *p, const char *msg, Event *event)
     if (flags & TEST_FLAG_SESSION)
         LogIpAddrs(test_file, p);
 
-    if ( (flags & TEST_FLAG_REBUILT) && (p->packet_flags && PKT_PSEUDO) )
+    if ( (flags & TEST_FLAG_REBUILT) && (p->packet_flags & PKT_PSEUDO) )
     {
         const char* s;
         switch ( p->pseudo_type )
index e9c49d2c17f2cae7e545ed95ae93c7a288994b80..555a3c7f486897c4a5d702b5e30f0559760e0f85 100644 (file)
@@ -187,7 +187,6 @@ bool StreamTcp::parse_protocol(std::istringstream& arg_stream)
     std::string dir;
     std::string lua_dir;
     std::string protocol;
-    bool tmpval = true;
     std::vector<std::string>* protocols;
     Binder* bind;