Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/cfg.c

    rfeeac0d r9d58539  
    8383                return true;
    8484       
    85         cfg_file_foreach(data, section) {
     85        list_foreach(data->sections, link) {
     86                const cfg_section_t *section = cfg_section_instance(link);
     87               
    8688                if (!list_empty(&section->entries))
    8789                        return false;
     
    411413const cfg_section_t *cfg_find_section(const cfg_file_t *data, const char *title)
    412414{
    413         cfg_file_foreach(data, section) {
     415        list_foreach(data->sections, link) {
     416                const cfg_section_t *section = cfg_section_instance(link);
     417               
    414418                if (str_cmp(section->title, title) == 0)
    415419                        return section;
     
    430434const char *cfg_find_value(const cfg_section_t *section, const char *key)
    431435{
    432         cfg_section_foreach(section, entry) {
     436        list_foreach(section->entries, link) {
     437                const cfg_entry_t *entry = cfg_entry_instance(link);
     438               
    433439                if (str_cmp(entry->key, key) == 0)
    434440                        return entry->value;
Note: See TracChangeset for help on using the changeset viewer.