Remove use of deprecated version of Face::expressInterest
Change-Id: I9337665ffb08425cbd368f0a54d70143210e66bd
diff --git a/src/clients/iterative-query-controller.cpp b/src/clients/iterative-query-controller.cpp
index 899a35c..5a143a5 100644
--- a/src/clients/iterative-query-controller.cpp
+++ b/src/clients/iterative-query-controller.cpp
@@ -175,6 +175,7 @@
NDNS_LOG_DEBUG("[* <- *] send a Query: " << interest.getName());
m_face.expressInterest(interest,
bind(&IterativeQueryController::onData, this, _1, _2),
+ bind(&IterativeQueryController::onTimeout, this, _1), // nack
bind(&IterativeQueryController::onTimeout, this, _1)
);
}
diff --git a/tools/ndns-update.cpp b/tools/ndns-update.cpp
index 0652677..881e0e7 100644
--- a/tools/ndns-update.cpp
+++ b/tools/ndns-update.cpp
@@ -73,6 +73,7 @@
NDNS_LOG_TRACE("[* <- *] send Update: " << m_update->getName().toUri());
m_face.expressInterest(interest,
bind(&NdnsUpdate::onData, this, _1, _2),
+ bind(&NdnsUpdate::onTimeout, this, _1), // nack
bind(&NdnsUpdate::onTimeout, this, _1) //dynamic binding
);
}