Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset b3c169e6 in mainline for uspace/lib/conf/src/ini.c


Ignore:
Timestamp:
2020-07-05T22:01:59Z (7 months ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
37a90a7
Parents:
6efe1b78
git-author:
Matthieu Riolo <matthieu.riolo@…> (2020-03-14 15:32:12)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2020-07-05 22:01:59)
Message:

correcting ccheck

Conflicts:

uspace/lib/c/generic/adt/dyn_array.c
uspace/lib/c/include/adt/dyn_array.h
uspace/lib/c/test/dyn_array.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/conf/src/ini.c

    r6efe1b78 rb3c169e6  
    110110}
    111111
    112 
    113112static size_t ini_item_ht_hash(const ht_link_t *item)
    114113{
     
    142141        ini_item_destroy(&ini_item);
    143142}
    144 
    145143
    146144static hash_table_ops_t configuration_ht_ops = {
     
    235233                        continue;
    236234                }
    237                
     235
    238236                /* Start new section */
    239237                if (line[0] == '[') {
     
    256254                        *close_bracket = '\0';
    257255                        cur_section->name = str_dup(line + 1);
    258                        
     256
    259257                        if (!hash_table_insert_unique(&conf->sections,
    260258                            &cur_section->ht_link)) {
     
    329327}
    330328
    331 
    332 
    333329/*
    334330 * Actual INI functions
     
    355351}
    356352
    357 static ini_section_t* ini_section_create(void)
     353static ini_section_t *ini_section_create(void)
    358354{
    359355        ini_section_t *section = malloc(sizeof(ini_section_t));
     
    403399}
    404400
    405 
    406401/** Parse file contents to INI structure
    407402 *
     
    447442}
    448443
    449 
    450444/** Get a section from configuration
    451445 *
     
    476470 */
    477471ini_item_iterator_t ini_section_get_iterator(ini_section_t *section,
    478    const char *key)
     472    const char *key)
    479473{
    480474        ini_item_iterator_t result;
Note: See TracChangeset for help on using the changeset viewer.