Removing Warning Messages
diff --git a/nlsr_route.c b/nlsr_route.c
index b4f70a4..6b45ed2 100644
--- a/nlsr_route.c
+++ b/nlsr_route.c
@@ -563,6 +563,10 @@
//face=strtok_r(NULL,sep,&rem);
metric=strtok_r(NULL,sep,&rem);
+ if ( !nlsr->debugging && nlsr->debugging)
+ {
+ printf("Metric: %s Length:%s\n",metric,length);
+ }
add_map_entry(rtr_id);
for(i=1;i<no_link;i++)
@@ -571,6 +575,10 @@
length=strtok_r(NULL,sep,&rem);
//face=strtok_r(NULL,sep,&rem);
metric=strtok_r(NULL,sep,&rem);
+ if ( !nlsr->debugging && nlsr->debugging)
+ {
+ printf("Metric: %s Length:%s\n",metric,length);
+ }
add_map_entry(rtr_id);
@@ -723,6 +731,11 @@
length=strtok_r(NULL,sep,&rem);
//face=strtok_r(NULL,sep,&rem);
metric=strtok_r(NULL,sep,&rem);
+
+ if ( !nlsr->debugging && nlsr->debugging)
+ {
+ printf("Metric: %s Length:%s\n",metric,length);
+ }
mapping_nbr_router=get_mapping_no(rtr_id);
adj_matrix[mapping_orig_router][mapping_nbr_router]=atoi(metric);
@@ -734,6 +747,11 @@
//face=strtok_r(NULL,sep,&rem);
metric=strtok_r(NULL,sep,&rem);
+ if ( !nlsr->debugging && nlsr->debugging)
+ {
+ printf("Metric: %s Length:%s\n",metric,length);
+ }
+
mapping_nbr_router=get_mapping_no(rtr_id);
adj_matrix[mapping_orig_router][mapping_nbr_router]=atoi(metric);
@@ -970,6 +988,10 @@
length=strtok_r(NULL,sep,&rem);
//face=strtok_r(NULL,sep,&rem);
metric=strtok_r(NULL,sep,&rem);
+ if ( !nlsr->debugging && nlsr->debugging)
+ {
+ printf("Metric: %s Length:%s\n",metric,length);
+ }
add_next_hop_router(rtr_id);
@@ -980,6 +1002,10 @@
length=strtok_r(NULL,sep,&rem);
//face=strtok_r(NULL,sep,&rem);
metric=strtok_r(NULL,sep,&rem);
+ if ( !nlsr->debugging && nlsr->debugging)
+ {
+ printf("Metric: %s Length:%s\n",metric,length);
+ }
add_next_hop_router(rtr_id);