From: rcombs Date: Fri, 14 Nov 2014 19:05:25 +0000 (-0500) Subject: fixed warnings - ugh! X-Git-Tag: 3.0.0-233~1218^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=993264c5ad52686adf426c9cdf758cd8a91cad54;p=thirdparty%2Fsnort3.git fixed warnings - ugh! --- diff --git a/src/ips_options/ips_pcre.cc b/src/ips_options/ips_pcre.cc index 5d964175b..54d53396e 100644 --- a/src/ips_options/ips_pcre.cc +++ b/src/ips_options/ips_pcre.cc @@ -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; diff --git a/src/network_inspectors/binder/binder.cc b/src/network_inspectors/binder/binder.cc index 91e00ddf5..0bf416cd2 100644 --- a/src/network_inspectors/binder/binder.cc +++ b/src/network_inspectors/binder/binder.cc @@ -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