tools: don't use deprecated ndn::encoding::dataBlock

refs #2950

Change-Id: Ibda4af7ab50df5a7f5700d7db5de1da938b7e020
diff --git a/tools/ndn-autoconfig-server.cpp b/tools/ndn-autoconfig-server.cpp
index ae576f3..84bcf74 100644
--- a/tools/ndn-autoconfig-server.cpp
+++ b/tools/ndn-autoconfig-server.cpp
@@ -1,11 +1,12 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
 /**
- * Copyright (c) 2014  Regents of the University of California,
- *                     Arizona Board of Regents,
- *                     Colorado State University,
- *                     University Pierre & Marie Curie, Sorbonne University,
- *                     Washington University in St. Louis,
- *                     Beijing Institute of Technology
+ * Copyright (c) 2014-2016,  Regents of the University of California,
+ *                           Arizona Board of Regents,
+ *                           Colorado State University,
+ *                           University Pierre & Marie Curie, Sorbonne University,
+ *                           Washington University in St. Louis,
+ *                           Beijing Institute of Technology,
+ *                           The University of Memphis.
  *
  * This file is part of NFD (Named Data Networking Forwarding Daemon).
  * See AUTHORS.md for complete list of NFD authors and contributors.
@@ -20,7 +21,7 @@
  *
  * You should have received a copy of the GNU General Public License along with
  * NFD, e.g., in COPYING.md file.  If not, see <http://www.gnu.org/licenses/>.
- **/
+ */
 
 #include "version.hpp"
 #include <ndn-cxx/encoding/tlv-nfd.hpp>
@@ -103,9 +104,9 @@
     // pre-create hub Data
     m_hubData = make_shared<Data>(Name(LOCALHOP_HUB).appendVersion());
     m_hubData->setFreshnessPeriod(time::hours(1)); // 1 hour
-    m_hubData->setContent(dataBlock(tlv::nfd::Uri,
-                                    reinterpret_cast<const uint8_t*>(hubFaceUri.c_str()),
-                                    hubFaceUri.size()));
+    m_hubData->setContent(makeBinaryBlock(tlv::nfd::Uri,
+                                          reinterpret_cast<const uint8_t*>(hubFaceUri.c_str()),
+                                          hubFaceUri.size()));
     m_keyChain.sign(*m_hubData);
 
     // pre-create routable prefix Data