]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Fixed nits.
authorSteve Chew <stechew@cisco.com>
Fri, 6 May 2016 16:44:37 +0000 (12:44 -0400)
committerSteve Chew <stechew@cisco.com>
Fri, 6 May 2016 16:44:37 +0000 (12:44 -0400)
src/host_tracker/test/host_cache_test.cc
src/host_tracker/test/host_tracker_module_test.cc

index 55bbbf5aeef22f623ae09b05bf31978f6a029ae8..f8e23b682e1389254a714231a478403e5e83846d 100644 (file)
@@ -165,7 +165,7 @@ int main(int argc, char** argv)
     //  deallocated. This pre-allocates the map so that initial
     //  allocation is done prior to starting the tests.  The same
     //  is true for the list used when adding a service.
-    HostTracker *ht = new HostTracker;
+    HostTrackerht = new HostTracker;
     host_cache_add_host_tracker(ht);
     host_cache_add_service(ip_addr1, proto1, port1, "udp");
 
index 333b9f2e5f36edf4c2701eb6af08f131a00c0050..59c0002c3eab77abf91a6556f1328c6fc7aa0eee 100644 (file)
@@ -69,8 +69,8 @@ TEST_GROUP(host_tracker_module)
         Parameter proto_param = {"proto", Parameter::PT_ENUM, "tcp | udp", "tcp", "ip proto"};
         Parameter port_param = {"port", Parameter::PT_PORT, nullptr, nullptr, "port num"};
         HostTrackerModule module;
-        const PegInfo *ht_pegs = module.get_pegs();
-        const PegCount *ht_stats = module.get_counts();
+        const PegInfoht_pegs = module.get_pegs();
+        const PegCountht_stats = module.get_counts();
 
         CHECK(!strcmp(ht_pegs[0].name, "service adds"));
         CHECK(!strcmp(ht_pegs[1].name, "service finds"));
@@ -168,7 +168,7 @@ int main(int argc, char** argv)
     //  that doesn't go away until the global map object is
     //  deallocated. This pre-allocates the map so that initial
     //  allocation is done prior to starting the tests.
-    HostTracker *ht = new HostTracker;
+    HostTrackerht = new HostTracker;
     host_cache_add_host_tracker(ht);
     host_cache.clear();