Changeset 489f996 for conf.c


Ignore:
Timestamp:
2008-12-25T11:05:11Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
9e768da
Parents:
72b6783e
Message:

Simplified ini parser code a bit more. Not using strtok() after all since
I can't find a guarantee that it's okay with me further mutilating the
strings. :-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • conf.c

    r72b6783e r489f996  
    308308                        else
    309309                        {
    310                                 fprintf( stderr, "Error: Unknown setting `%s` in configuration file.\n", ini->key );
     310                                fprintf( stderr, "Error: Unknown setting `%s` in configuration file (line %d).\n", ini->key, ini->line );
    311311                                return 0;
    312312                                /* For now just ignore unknown keys... */
     
    315315                else if( g_strcasecmp( ini->section, "defaults" ) != 0 )
    316316                {
    317                         fprintf( stderr, "Error: Unknown section [%s] in configuration file. "
    318                                          "BitlBee configuration must be put in a [settings] section!\n", ini->section );
     317                        fprintf( stderr, "Error: Unknown section [%s] in configuration file (line %d). "
     318                                         "BitlBee configuration must be put in a [settings] section!\n", ini->section, ini->line );
    319319                        return 0;
    320320                }
Note: See TracChangeset for help on using the changeset viewer.