]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
removing regression tests
authorJosh <jrosenba@cisco.com>
Wed, 23 Jul 2014 13:18:21 +0000 (09:18 -0400)
committerJosh <jrosenba@cisco.com>
Wed, 23 Jul 2014 13:18:21 +0000 (09:18 -0400)
src/managers/packet_manager.cc
src/protocols/tcp.h
src/sfip/sf_ip.h
tools/snort2lua/data/dt_comment.h

index d30b04f8cefd1cc20488ad07cbbcdee940a02e15..f20352f5f62e0dfd385fe869e9694d9d1774d083 100644 (file)
@@ -248,7 +248,7 @@ static bool api_instantiated(const CodecApi* cd_api)
                     "Cannot find Codec %s's api", cd_api->base.name);
 
     int pos = p - s_codecs.begin();
-    if(instantiated_api[pos])
+    if(instantiated_api[(std::size_t)pos])
         return true;
 
     instantiated_api[pos] = true;
@@ -314,7 +314,7 @@ void PacketManager::instantiate(const CodecApi* cd_api , Module* m, SnortConfig*
                 s_protocols[s_proto_map[id]]->get_name(), cd->get_name(),
                 id, cd->get_name());
 
-        s_proto_map[id] = codec_id;
+        s_proto_map[id] = (uint8_t)codec_id;
     }
 
     s_protocols[codec_id++] = cd;
index 449a40104351c729f18bd12c137f125782ba29f8..300b85a826ea94625017b046ddfe5d3e6264cdb5 100644 (file)
@@ -156,7 +156,7 @@ enum TcpOpt{
 
 inline void set_tcp_offset(TCPHdr *tcph, uint8_t value)
 {
-    tcph->th_offx2 = (tcph->th_offx2 & 0x0f) | (value << 4);
+    tcph->th_offx2 = (uint8_t)((tcph->th_offx2 & 0x0f) | (value << 4));
 }
 
 inline void set_tcp_x2(TCPHdr* tcph, uint8_t value)
index 887556bb2b89fcaa7718305ba6c41b3692c506a6..f5eb35b37149900c885c4f8079a4e58b4404a170 100644 (file)
@@ -146,7 +146,7 @@ static inline void sfip_set_bits(sfip_t *p, int bits) {
 
     if(bits < 0 || bits > 128) return;
 
-    p->bits = bits;
+    p->bits = (int16_t)bits;
 }
 
 /* Returns the raw IP address as an in6_addr */
index faf839c5bb9789e440a621f213d2390afb18eac0..c76715db6c238f0574dd27838fe423654a054256 100644 (file)
@@ -29,7 +29,7 @@
 
 static const std::string start_comments =
     "\nCOMMENTS:\n"
-    "    these line were originally commented "
+    "    these line were commented "
     "in the configuration file.";
 
 static const std::string start_errors =