diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-10-06 22:49:45 +0400 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-10-06 22:49:45 +0400 |
commit | 3bcce5be8687fc99d5faa5c71e7a07afb7cdb39d (patch) | |
tree | dd14a8fb911acf97900548c7c1965c2d6a46a331 /tests/unit_tests/test_peerlist.cpp | |
parent | Merge pull request #2518 (diff) | |
parent | Upgrades to epee::net_utils::network_address (diff) | |
download | monero-3bcce5be8687fc99d5faa5c71e7a07afb7cdb39d.tar.xz |
Merge pull request #2345
8b006877 Upgrades to epee::net_utils::network_address - internal nullptr checks - prevent modifications to network_address (shallow copy issues) - automagically works with any type containing interface functions - removed fnv1a hashing - ipv4_network_address now flattened with no base class (Lee Clagett)
Diffstat (limited to 'tests/unit_tests/test_peerlist.cpp')
-rw-r--r-- | tests/unit_tests/test_peerlist.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit_tests/test_peerlist.cpp b/tests/unit_tests/test_peerlist.cpp index 4a546b50d..849020d25 100644 --- a/tests/unit_tests/test_peerlist.cpp +++ b/tests/unit_tests/test_peerlist.cpp @@ -38,7 +38,7 @@ TEST(peer_list, peer_list_general) { nodetool::peerlist_manager plm; plm.init(false); -#define MAKE_IPV4_ADDRESS(a,b,c,d,e) new epee::net_utils::ipv4_network_address(MAKE_IP(a,b,c,d),e) +#define MAKE_IPV4_ADDRESS(a,b,c,d,e) epee::net_utils::ipv4_network_address{MAKE_IP(a,b,c,d),e} #define ADD_GRAY_NODE(addr_, id_, last_seen_) { nodetool::peerlist_entry ple; ple.last_seen=last_seen_;ple.adr = addr_; ple.id = id_;plm.append_with_peer_gray(ple);} #define ADD_WHITE_NODE(addr_, id_, last_seen_) { nodetool::peerlist_entry ple;ple.last_seen=last_seen_; ple.adr = addr_; ple.id = id_;plm.append_with_peer_white(ple);} |