build: Warnings correction for gcc 4.2
Also in this commit some code style corrections.
Change-Id: Idf2b5b96b328fb3dbea7440362c84d7759a10ec5
Refs: #1429
diff --git a/examples/producer.cpp b/examples/producer.cpp
index b34bae1..1327e94 100644
--- a/examples/producer.cpp
+++ b/examples/producer.cpp
@@ -24,9 +24,9 @@
onInterest(const Name& name, const Interest& interest)
{
std::cout << "<< I: " << interest << std::endl;
-
+
ndn::Data data(ndn::Name(interest.getName()).append("testApp").appendVersion());
- data.setFreshnessPeriod(time::seconds(10));
+ data.setFreshnessPeriod(ndn::time::seconds(10));
data.setContent((const uint8_t*)"HELLO KITTY", sizeof("HELLO KITTY"));
@@ -43,7 +43,7 @@
std::cerr << "ERROR: Failed to register prefix in local hub's daemon (" << reason << ")" << std::endl;
face_.shutdown ();
}
-
+
void
listen()
{