src: Minor corrections and improvements
Change-Id: If1041d13b7c469e64e3523297438067baf96b1d6
diff --git a/tools/ndncatchunks3.cpp b/tools/ndncatchunks3.cpp
index 2b0e635..d84758a 100644
--- a/tools/ndncatchunks3.cpp
+++ b/tools/ndncatchunks3.cpp
@@ -53,7 +53,7 @@
private:
void
- onData(const Interest& interest, Data& data);
+ onData(Data& data);
void
onTimeout(const Interest& interest);
@@ -84,7 +84,7 @@
interest.setMustBeFresh(m_mustBeFresh);
m_face.expressInterest(interest,
- bind(&Consumer::onData, this, _1, _2),
+ bind(&Consumer::onData, this, _2),
bind(&Consumer::onTimeout, this, _1));
}
@@ -98,7 +98,7 @@
}
void
-Consumer::onData(const Interest& interest, Data& data)
+Consumer::onData(Data& data)
{
const Block& content = data.getContent();
const Name& name = data.getName();
@@ -125,7 +125,7 @@
interest.setMustBeFresh(m_mustBeFresh);
m_face.expressInterest(interest,
- bind(&Consumer::onData, this, _1, _2),
+ bind(&Consumer::onData, this, _2),
bind(&Consumer::onTimeout, this, _1));
}
}