build: Fix compilation errors and deprecation warnings
Change-Id: Ibbe2d30ced038f0c46a8669b5957b68c4f265350
diff --git a/src/sync-interest-table.cc b/src/sync-interest-table.cc
index 16706ea..f62d946 100644
--- a/src/sync-interest-table.cc
+++ b/src/sync-interest-table.cc
@@ -32,8 +32,8 @@
: m_entryLifetime (lifetime)
, m_scheduler(io)
{
- m_scheduler.schedulePeriodicEvent (ndn::time::seconds (4), ndn::time::seconds (4),
- ndn::bind(&SyncInterestTable::expireInterests, this));
+ m_scheduler.scheduleEvent(ndn::time::seconds (4),
+ ndn::bind(&SyncInterestTable::expireInterests, this));
}
SyncInterestTable::~SyncInterestTable ()
@@ -116,6 +116,9 @@
else
break;
}
+
+ m_scheduler.scheduleEvent(ndn::time::seconds (4),
+ ndn::bind(&SyncInterestTable::expireInterests, this));
}