all: Update code to compile with latest time-related changes in ndn-cpp-dev library
Change-Id: I7e859989c833001f49b286d4a9917f4dc740b4a4
diff --git a/daemon/core/resolver.hpp b/daemon/core/resolver.hpp
index bd61f10..508e26d 100644
--- a/daemon/core/resolver.hpp
+++ b/daemon/core/resolver.hpp
@@ -9,7 +9,6 @@
#include "common.hpp"
#include "core/global-io.hpp"
-#include "core/time.hpp"
#include "core/scheduler.hpp"
namespace nfd {
@@ -73,7 +72,7 @@
const SuccessCallback& onSuccess,
const ErrorCallback& onError,
const nfd::resolver::AddressSelector& addressSelector = nfd::resolver::AnyAddress(),
- const time::Duration& timeout = time::seconds(4.0))
+ const time::seconds& timeout = time::seconds(4))
{
shared_ptr<Resolver> resolver =
shared_ptr<Resolver>(new Resolver(onSuccess, onError,
@@ -126,7 +125,7 @@
void
asyncResolve(const std::string& host, const std::string& port,
- const time::Duration& timeout,
+ const time::seconds& timeout,
const shared_ptr<Resolver>& self)
{
typename resolver::query query(host, port,