return -1;
}
- while ((map = fr_dlist_next(maps, map))) {
+ while ((map = fr_map_list_next(maps, map))) {
CONF_PAIR *cp = cf_item_to_pair(map->ci);
char const *p;
* list member was pre-allocated and passed to the
* instantiation callback.
*/
- if (fr_dlist_next(maps, map)) {
+ if (fr_map_list_next(maps, map)) {
*tail = cache = talloc_zero(cache, rlm_json_jpath_cache_t);
tail = &cache->next;
}
goto finish;
}
- while ((map = fr_dlist_next(maps, map))) {
+ while ((map = fr_map_list_next(maps, map))) {
switch (map->rhs->type) {
/*
* Cached types
}
RINDENT();
- for (map = fr_dlist_head(maps), i = 0;
+ for (map = fr_map_list_head(maps), i = 0;
map != NULL;
- map = fr_dlist_next(maps, map), i++) {
+ map = fr_map_list_next(maps, map), i++) {
int ret;
fr_ldap_result_t attr;
}
}
- if (!fr_dlist_empty(&inst->user_map) || inst->valuepair_attr) {
+ if (!fr_map_list_empty(&inst->user_map) || inst->valuepair_attr) {
RDEBUG2("Processing user attributes");
RINDENT();
if (fr_ldap_map_do(request, handle, inst->valuepair_attr,
rcode = map_afrom_cs(ctx, head, cs, &parse_rules, &parse_rules, unlang_fixup_update, NULL, 128);
if (rcode < 0) return -1; /* message already printed */
- if (fr_dlist_empty(head)) {
+ if (fr_map_list_empty(head)) {
cf_log_err(cs, "'update' sections cannot be empty");
return -1;
}
* Create the VPs, and ignore any errors
* creating them.
*/
- while ((map = fr_dlist_next(&inst->parent->status_check_map, map))) {
+ while ((map = fr_map_list_next(&inst->parent->status_check_map, map))) {
/*
* Skip things which aren't attributes.
*/
* faster than building a radix tree each time the
* map set is evaluated (map->rhs can be dynamic).
*/
- for (map = fr_dlist_head(maps), i = 0;
+ for (map = fr_map_list_head(maps), i = 0;
map && (i < MAX_SQL_FIELD_INDEX);
- map = fr_dlist_next(maps, map), i++) {
+ map = fr_map_list_next(maps, map), i++) {
/*
* Expand the RHS to get the name of the SQL field
*/
*/
while (((ret = rlm_sql_fetch_row(&row, inst, request, &handle)) == RLM_SQL_OK)) {
rows++;
- for (map = fr_dlist_head(maps), j = 0;
+ for (map = fr_map_list_head(maps), j = 0;
map && (j < MAX_SQL_FIELD_INDEX);
- map = fr_dlist_next(maps, map), j++) {
+ map = fr_map_list_next(maps, map), j++) {
if (field_index[j] < 0) continue; /* We didn't find the map RHS in the field set */
if (map_to_request(request, map, _sql_map_proc_get_value, row[field_index[j]]) < 0) goto error;
}