return 0;
}
-void *fr_radius_next_encodable(void **prev, void *to_eval, void *uctx);
+void *fr_radius_next_encodable(fr_dlist_head_t *list, void *to_eval, void *uctx);
-void *fr_radius_next_encodable(void **prev, void *to_eval, void *uctx)
+void *fr_radius_next_encodable(fr_dlist_head_t *list, void *to_eval, void *uctx)
{
- fr_pair_t *c, *p;
+ fr_pair_t *c;
fr_dict_t *dict = talloc_get_type_abort(uctx, fr_dict_t);
if (!to_eval) return NULL;
- for (p = *prev, c = to_eval; c; p = c, c = c->next) {
+ for (c = to_eval; c; c = fr_dlist_next(list, c)) {
VP_VERIFY(c);
if ((c->da->dict == dict) &&
(!c->da->flags.internal || ((c->da->attr > FR_TAG_BASE) && (c->da->attr < (FR_TAG_BASE + 0x20))))) {
}
}
- *prev = p;
-
return c;
}
/*
* No one else should be using this.
*/
-extern void *fr_radius_next_encodable(void **prev, void *to_eval, void *uctx);
+extern void *fr_radius_next_encodable(fr_dlist_head_t *list, void *to_eval, void *uctx);
/*
* Test points