mgmt/tools: fix build errors

Replace deprecated FaceStatus elements.

Fix unused-result warning in ndn-tlv-peek.

refs #1417

Change-Id: I6a8dcbfce1e0a112041ed2fedc2d485ff67ccf7d
diff --git a/tests/mgmt/face-status-publisher-common.hpp b/tests/mgmt/face-status-publisher-common.hpp
index 9df73b1..59e99f8 100644
--- a/tests/mgmt/face-status-publisher-common.hpp
+++ b/tests/mgmt/face-status-publisher-common.hpp
@@ -139,26 +139,26 @@
         inInterest =
           checkedReadNonNegativeIntegerType(i,
                                             status.elements_end(),
-                                            ndn::tlv::nfd::TotalIncomingInterestCounter);
+                                            ndn::tlv::nfd::NInInterests);
 
         BOOST_REQUIRE_EQUAL(inInterest, counters.getInInterest());
 
         inData =
           checkedReadNonNegativeIntegerType(i,
                                             status.elements_end(),
-                                            ndn::tlv::nfd::TotalIncomingDataCounter);
+                                            ndn::tlv::nfd::NInDatas);
 
         BOOST_REQUIRE_EQUAL(inData, counters.getInData());
 
         outInterest =
           checkedReadNonNegativeIntegerType(i,
                                             status.elements_end(),
-                                            ndn::tlv::nfd::TotalOutgoingInterestCounter);
+                                            ndn::tlv::nfd::NOutInterests);
         BOOST_REQUIRE_EQUAL(outInterest, counters.getOutInterest());
 
         outData =
           readNonNegativeIntegerType(*i,
-                                     ndn::tlv::nfd::TotalOutgoingDataCounter);
+                                     ndn::tlv::nfd::NOutDatas);
 
         BOOST_REQUIRE_EQUAL(outData, counters.getOutData());
       }