update
diff --git a/nlsr.c b/nlsr.c
index b3d38e9..6655558 100644
--- a/nlsr.c
+++ b/nlsr.c
@@ -249,7 +249,9 @@
hashtb_start(nlsr->npl, e);
res = hashtb_seek(e, np->name, strlen(np->name), 0);
-
+
+ assert(res == HT_NEW_ENTRY);
+
hnp = e->data;
hnp->name=(char *)malloc(np->length);
memcpy(hnp->name,np->name,np->length);
@@ -353,7 +355,7 @@
{
int res;
char *config_file;
- int daemon_mode;
+ //int daemon_mode;
struct ccn_charbuf *router_prefix;
init_nlsr();
@@ -363,7 +365,7 @@
switch (res)
{
case 'd':
- daemon_mode = 1;
+ //daemon_mode = 1;
break;
case 'f':
config_file = optarg;