table: don't use shared_ptr in FIB
refs #3164
Change-Id: I5b5eb47d60f6bf5b6389c32ac840f793767e4334
diff --git a/daemon/nfd.cpp b/daemon/nfd.cpp
index 5d9ce22..65fa80a 100644
--- a/daemon/nfd.cpp
+++ b/daemon/nfd.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2014-2015, Regents of the University of California,
+ * Copyright (c) 2014-2016, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -194,8 +194,7 @@
// add FIB entry for NFD Management Protocol
Name topPrefix("/localhost/nfd");
- auto entry = m_forwarder->getFib().insert(topPrefix).first;
- entry->addNextHop(m_internalFace, 0);
+ m_forwarder->getFib().insert(topPrefix).first->addNextHop(*m_internalFace, 0);
m_dispatcher->addTopPrefix(topPrefix, false);
}