tools: Fixing bugs in nfd-status
Also in this commit: implementing const_reverse_iterator in FaceTable.
It also would be good to have reverse iterator in Fib, but not strictly
necessary.
Change-Id: Ie9cf849b718f5db76db2957b4452790f9ae68fd3
Refs: #1378
diff --git a/daemon/mgmt/fib-enumeration-publisher.cpp b/daemon/mgmt/fib-enumeration-publisher.cpp
index 89f0956..79532ba 100644
--- a/daemon/mgmt/fib-enumeration-publisher.cpp
+++ b/daemon/mgmt/fib-enumeration-publisher.cpp
@@ -31,8 +31,9 @@
size_t
FibEnumerationPublisher::generate(ndn::EncodingBuffer& outBuffer)
{
-
size_t totalLength = 0;
+
+ /// \todo Enable use of Fib::const_reverse_iterator (when it is available)
for (Fib::const_iterator i = m_fib.begin(); i != m_fib.end(); ++i)
{
const fib::Entry& entry = *i;