tools: follow API change in ndn::nfd::Route

Change-Id: I67b770b4083afbea1fcf59fdcd183e971b1f6a6d
Refs: #3903
diff --git a/tools/nfdc/rib-module.cpp b/tools/nfdc/rib-module.cpp
index 266a550..454dc1e 100644
--- a/tools/nfdc/rib-module.cpp
+++ b/tools/nfdc/rib-module.cpp
@@ -1,6 +1,6 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
 /**
- * Copyright (c) 2014-2016,  Regents of the University of California,
+ * Copyright (c) 2014-2017,  Regents of the University of California,
  *                           Arizona Board of Regents,
  *                           Colorado State University,
  *                           University Pierre & Marie Curie, Sorbonne University,
@@ -80,7 +80,7 @@
       }
       os << "</flags>";
     }
-    if (!route.hasInfiniteExpirationPeriod()) {
+    if (route.hasExpirationPeriod()) {
       os << "<expirationPeriod>"
          << xml::formatDuration(route.getExpirationPeriod())
          << "</expirationPeriod>";
@@ -112,7 +112,7 @@
        << "faceid=" << route.getFaceId()
        << " (origin=" << route.getOrigin()
        << " cost=" << route.getCost();
-    if (!route.hasInfiniteExpirationPeriod()) {
+    if (route.hasExpirationPeriod()) {
       os << " expires=" << text::formatDuration(route.getExpirationPeriod());
     }
     if (route.isChildInherit()) {