Reverting back
diff --git a/nlsr-sync-0.0/nlsr_sync.c b/nlsr-sync-0.0/nlsr_sync.c
index b3bc586..f02fe8a 100644
--- a/nlsr-sync-0.0/nlsr_sync.c
+++ b/nlsr-sync-0.0/nlsr_sync.c
@@ -53,6 +53,7 @@
{
char *hexL;
char *hexR;
+ int res;
struct ccn_charbuf *uri = ccn_charbuf_create();
if (lhash == NULL || lhash->length == 0) {
hexL = strdup("none");
@@ -78,29 +79,20 @@
//--Doing our thing from here
- /*struct ccn_indexbuf cid={0};
+ struct ccn_indexbuf cid={0};
struct ccn_indexbuf *components=&cid;
- ccn_name_split (name, components);
- ccn_name_chop(name,components,-3);
+ //ccn_name_split (name, components);
+ //ccn_name_chop(name,components,-3);
+ //process_content_from_sync(name,components);
- process_content_from_sync(name,components);
-
- */
- struct ccn_indexbuf cid={0};
- struct ccn_indexbuf *components=&cid;
-
- char *name_string=ccn_charbuf_as_string(name);
struct ccn_charbuf *content_name = ccn_charbuf_create();
- int res=ccn_name_from_uri(content_name,name_string);
+ res = ccn_name_append(content_name, name->buf, name->length);
+ res = ccn_name_split (name, components);
printf("Res = %d \n",res);
-
- res=ccn_name_split (content_name, components);
-
- printf("Res = %d \n",res);
-
ccn_charbuf_destroy(&content_name);
+
return(0);
}