Просмотр исходного кода

Use next_sibling_hdr to obtain next header with same type

Jan Janak 16 лет назад
Родитель
Сommit
fc75032e61
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      lib/kcore/parser_helpers.c

+ 1 - 4
lib/kcore/parser_helpers.c

@@ -112,10 +112,7 @@ int print_rr_body(struct hdr_field *iroute, str *oroute, int order,
 			p = p->next;
 		}
 
-		for(iroute = iroute->next; iroute; iroute = iroute->next) {
-			if (iroute->type == HDR_ROUTE_T) break;
-		}		
-/*		iroute = iroute->sibling; */
+		iroute = next_sibling_hdr(iroute);
 	}
 
 	for(i=0;i<n;i++){