src: Minor corrections and improvements
Change-Id: If1041d13b7c469e64e3523297438067baf96b1d6
diff --git a/examples/producer.cpp b/examples/producer.cpp
index 1a2dbee..2998bd0 100644
--- a/examples/producer.cpp
+++ b/examples/producer.cpp
@@ -67,7 +67,7 @@
void
- onRegisterFailed(const Name& prefix, const std::string& reason)
+ onRegisterFailed(const std::string& reason)
{
std::cerr << "ERROR: Failed to register prefix in local hub's daemon (" << reason << ")"
<< std::endl;
@@ -80,7 +80,7 @@
m_face.setInterestFilter("/localhost/testApp",
bind(&Producer::onInterest, this, _1, _2),
RegisterPrefixSuccessCallback(),
- bind(&Producer::onRegisterFailed, this, _1, _2));
+ bind(&Producer::onRegisterFailed, this, _2));
m_face.processEvents();
}