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


Ignore:
Timestamp:
2019-09-02T19:01:50Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
25697163
Parents:
241f1985
Message:

Correcting syntax according to ccheck

File:
1 edited

Legend:

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

    r241f1985 r102f641  
    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.