[SR-Dev] git:janakj/kcore: Use next_sibling_hdr to obtain next header with same type
Jan Janak
jan at iptel.org
Mon Mar 23 13:48:52 CET 2009
Module: sip-router
Branch: janakj/kcore
Commit: fc75032e611db1d6611a0c7806a15d6a16dd9967
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=fc75032e611db1d6611a0c7806a15d6a16dd9967
Author: Jan Janak <jan at iptel.org>
Committer: Jan Janak <jan at iptel.org>
Date: Mon Mar 23 13:48:29 2009 +0100
Use next_sibling_hdr to obtain next header with same type
---
lib/kcore/parser_helpers.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/lib/kcore/parser_helpers.c b/lib/kcore/parser_helpers.c
index fbfc5a0..e769160 100644
--- a/lib/kcore/parser_helpers.c
+++ b/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++){
More information about the sr-dev
mailing list