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/tools/ndn-tlv-peek.cpp b/tools/ndn-tlv-peek.cpp
index f84116d..00e0bdb 100644
--- a/tools/ndn-tlv-peek.cpp
+++ b/tools/ndn-tlv-peek.cpp
@@ -4,7 +4,7 @@
  *
  * Author: Jerald Paul Abraham <jeraldabraham@email.arizona.edu>
  */
- 
+
 #include <boost/asio.hpp>
 
 #include <ndn-cpp-dev/face.hpp>
@@ -137,13 +137,13 @@
     m_isDataReceived = true;
     if (m_isPayloadOnlySet)
       {
-        ndn::Block block = data.getContent();
-        write(1, block.value(), block.value_size());
+        const ndn::Block& block = data.getContent();
+        std::cout.write(reinterpret_cast<const char*>(block.value()), block.value_size());
       }
     else
       {
-        ndn::Block block = data.wireEncode();
-        write(1, block.wire(), block.size());
+        const ndn::Block& block = data.wireEncode();
+        std::cout.write(reinterpret_cast<const char*>(block.wire()), block.size());
       }
   }