// 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;
+ HostTracker* ht = new HostTracker;
host_cache_add_host_tracker(ht);
host_cache_add_service(ip_addr1, proto1, port1, "udp");
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 PegInfo* ht_pegs = module.get_pegs();
+ const PegCount* ht_stats = module.get_counts();
CHECK(!strcmp(ht_pegs[0].name, "service adds"));
CHECK(!strcmp(ht_pegs[1].name, "service finds"));
// 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;
+ HostTracker* ht = new HostTracker;
host_cache_add_host_tracker(ht);
host_cache.clear();