table: Correcting type of Cost parameter in fib::Entry::addNextHop
Change-Id: I594dfb921367cff163ca07d987cbf61df8c10d0b
Refs: #1457
diff --git a/daemon/table/fib-entry.cpp b/daemon/table/fib-entry.cpp
index eb41bd2..79111e2 100644
--- a/daemon/table/fib-entry.cpp
+++ b/daemon/table/fib-entry.cpp
@@ -47,7 +47,7 @@
}
void
-Entry::addNextHop(shared_ptr<Face> face, int32_t cost)
+Entry::addNextHop(shared_ptr<Face> face, uint64_t cost)
{
NextHopList::iterator it = std::find_if(m_nextHops.begin(), m_nextHops.end(),
bind(&predicate_NextHop_eq_Face, _1, face));
diff --git a/daemon/table/fib-entry.hpp b/daemon/table/fib-entry.hpp
index 3f7d8b7..e30f9d7 100644
--- a/daemon/table/fib-entry.hpp
+++ b/daemon/table/fib-entry.hpp
@@ -69,7 +69,7 @@
/// adds a nexthop
void
- addNextHop(shared_ptr<Face> face, int32_t cost);
+ addNextHop(shared_ptr<Face> face, uint64_t cost);
/// removes a nexthop
void