]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
fixed warnings - ugh!
authorrcombs <rcombs@sq18.sfeng.sourcefire.com>
Fri, 14 Nov 2014 19:05:25 +0000 (14:05 -0500)
committerrcombs <rcombs@sq18.sfeng.sourcefire.com>
Fri, 14 Nov 2014 19:05:25 +0000 (14:05 -0500)
src/ips_options/ips_pcre.cc
src/network_inspectors/binder/binder.cc

index 5d964175bf70c9ed9b024892ff27ff392e0b4696..54d53396e907bb44dac5588f1ba717e594ba6639 100644 (file)
@@ -622,7 +622,7 @@ bool pcre_next(PcreData* pcre)
 
 void pcre_setup(SnortConfig* sc)
 {
-    for ( int i = 0; i < get_instance_max(); ++i )
+    for ( unsigned i = 0; i < get_instance_max(); ++i )
     {
         SnortState* ss = sc->state + i;
         ss->pcre_ovector = (int *) SnortAlloc(s_ovector_max*sizeof(int));
@@ -631,7 +631,7 @@ void pcre_setup(SnortConfig* sc)
 
 void pcre_cleanup(SnortConfig* sc)
 {
-    for ( int i = 0; i < get_instance_max(); ++i )
+    for ( unsigned i = 0; i < get_instance_max(); ++i )
     {
         SnortState* ss = sc->state + i;
 
index 91e00ddf5fd36ff9d57f1881b4cb066632d9abb0..0bf416cd2f6d3902c4fe56af0147417aef27781f 100644 (file)
@@ -44,13 +44,10 @@ using namespace std;
 THREAD_LOCAL ProfileStats bindPerfStats;
 
 // FIXIT-P these lookups should be optimized when the dust settles
-#define INS_WIZ  "wizard"
-#define INS_STR  "stream_"
 #define INS_IP   "stream_ip"
 #define INS_ICMP "stream_icmp"
 #define INS_TCP  "stream_tcp"
 #define INS_UDP  "stream_udp"
-#define INS_NORM "normalizer"
 
 //-------------------------------------------------------------------------
 // binding