Check Changes in sync_cb
diff --git a/macbook.conf b/macbook.conf
index 05389cc..52e84f7 100644
--- a/macbook.conf
+++ b/macbook.conf
@@ -4,7 +4,7 @@
ccnneighbor /ndn/memphis.edu/cs/maia
ccnneighbor /ndn/memphis.edu/cs/mira
ccnneighbor /ndn/memphis.edu/cs/castor
-ccnneighbor /ndn/router/pollux 141.225.11.132
+ccnneighbor /ndn/memphis.edu/cs/pollux 141.225.11.132
ccnname /ndn/memphis.edu/macbook/patterson
ccnname /ndn/memphis.edu/macbook/houston/
#------lsdb-synch-interval-----
@@ -15,7 +15,7 @@
router-dead-interval 900
max_faces_per_prefix 1
debug on
-hyperbolic-routing on
+#hyperbolic-routing on
hyperbolic-cordinate 1234.0 0.875
tunnel-type udp
diff --git a/nlsr_sync.c b/nlsr_sync.c
index b798b57..054810a 100644
--- a/nlsr_sync.c
+++ b/nlsr_sync.c
@@ -79,9 +79,10 @@
//--Doing our thing from here
- struct ccn_indexbuf cid={0};
+ //struct ccn_indexbuf cid={0};
- struct ccn_indexbuf *components=&cid;
+ //struct ccn_indexbuf *components=&cid;
+ struct ccn_indexbuf *components=ccn_indexbuf_create();
res=ccn_name_split (name, components);
if ( res < 0 )
return 0;
@@ -105,8 +106,9 @@
printf("Name before chopping: %s \n",ccn_charbuf_as_string(temp));
ccn_charbuf_destroy(&temp);
- struct ccn_indexbuf cid1={0};
- struct ccn_indexbuf *components1=&cid1;
+ //struct ccn_indexbuf cid1={0};
+ //struct ccn_indexbuf *components1=&cid1;
+ struct ccn_indexbuf *components1=ccn_indexbuf_create();
res=ccn_name_split (content_name, components1);
if ( res < 0)
return 0;
@@ -129,6 +131,8 @@
process_content_from_sync(content_name,components1);
ccn_charbuf_destroy(&content_name);
+ ccn_indexbuf_destroy(&components);
+ ccn_indexbuf_destroy(&components1);
return(0);
}