From 072fdf348826db6bc75207540c55e8e275227516 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Wed, 20 May 2020 19:59:46 +0100 Subject: PoC: C++ ASIO --- tests/Network/NameLookup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/Network/NameLookup.cpp') diff --git a/tests/Network/NameLookup.cpp b/tests/Network/NameLookup.cpp index 2904a0199..1ae6c3bbc 100644 --- a/tests/Network/NameLookup.cpp +++ b/tests/Network/NameLookup.cpp @@ -52,7 +52,7 @@ static void DoTest(void) // Look up google.com (has multiple IP addresses): LOGD("Network test: Looking up google.com"); - if (!cNetwork::HostnameToIP("google.com", std::make_shared(evtFinish))) + if (!cNetwork::HostnameToIP("google.com", std::make_unique(evtFinish))) { LOGWARNING("Cannot resolve google.com to IP"); abort(); @@ -63,7 +63,7 @@ static void DoTest(void) // Look up 8.8.8.8 (Google free DNS): LOGD("Network test: Looking up IP 8.8.8.8"); - if (!cNetwork::IPToHostName("8.8.8.8", std::make_shared(evtFinish))) + if (!cNetwork::IPToHostName("8.8.8.8", std::make_unique(evtFinish))) { LOGWARNING("Cannot resolve 8.8.8.8 to name"); abort(); -- cgit v1.2.3