On Sunday 16 December 2012, Richard Fuchs wrote:
+ ptr = ptr->next;
+ while (ptr) {
+ if (ptr->type == hftype)
+ break;
+ ptr = ptr->next;
+ }
+ if (!ptr)
+ break;
There is a dedicated function for walking the sibling headers:
next_sibling_hdr(). Please consider using it instead of open coding the
loop. Like in attached patch i should have pushed log time ago ;)
--
Alex Hermann