src: Minor corrections and improvements
Change-Id: If1041d13b7c469e64e3523297438067baf96b1d6
diff --git a/tools/ndnputchunks3.cpp b/tools/ndnputchunks3.cpp
index 532b952..ca9475a 100644
--- a/tools/ndnputchunks3.cpp
+++ b/tools/ndnputchunks3.cpp
@@ -62,7 +62,7 @@
}
void
- onInterest(const Name& name, const Interest& interest)
+ onInterest(const Interest& interest)
{
if (m_isVerbose)
std::cerr << "<< I: " << interest << std::endl;
@@ -78,7 +78,9 @@
void
onRegisterFailed(const Name& prefix, const std::string& reason)
{
- std::cerr << "ERROR: Failed to register prefix in local hub's daemon (" << reason << ")" << std::endl;
+ std::cerr << "ERROR: Failed to register prefix '"
+ << prefix << "' in local hub's daemon (" << reason << ")"
+ << std::endl;
m_face.shutdown();
}
@@ -92,7 +94,7 @@
}
m_face.setInterestFilter(m_name,
- bind(&Producer::onInterest, this, _1, _2),
+ bind(&Producer::onInterest, this, _2),
RegisterPrefixSuccessCallback(),
bind(&Producer::onRegisterFailed, this, _1, _2));
m_face.processEvents();