if (!list_empty(&sd->list))
list_del(&sd->list);
- if (sd->sm->free_section)
- sd->sm->free_section(map, section);
+ if (sd->sm->free)
+ sd->sm->free(map, section);
for (i = 0; i < sd->allocmap_len; i++) {
ucimap_free_item(&sd->allocmap[i]);
section = (char *)sd + sizeof(struct uci_sectmap_data);
- err = sm->init_section(map, section, s);
+ err = sm->init(map, section, s);
if (err)
goto error;
continue;
section = (char *) sd + sizeof(struct uci_sectmap_data);
- if (sd->sm->add_section(map, section) != 0)
+ if (sd->sm->add(map, section) != 0)
ucimap_free_section(map, sd);
}
}