diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2008-12-25 11:05:11 +0000 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2008-12-25 11:05:11 +0000 | 
| commit | 489f996fe52c6969a9574d5ca562a4f5cb5c2585 (patch) | |
| tree | 52356e203d9fa6c595e8b640b4b2cae11b52d09e /conf.c | |
| parent | 72b6783ebf2af43a384364e62eab71b1c5e6f9c1 (diff) | |
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. :-)
Diffstat (limited to 'conf.c')
| -rw-r--r-- | conf.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| @@ -307,15 +307,15 @@ static int conf_loadini( conf_t *conf, char *file )  			}  			else  			{ -				fprintf( stderr, "Error: Unknown setting `%s` in configuration file.\n", ini->key ); +				fprintf( stderr, "Error: Unknown setting `%s` in configuration file (line %d).\n", ini->key, ini->line );  				return 0;  				/* For now just ignore unknown keys... */  			}  		}  		else if( g_strcasecmp( ini->section, "defaults" ) != 0 )  		{ -			fprintf( stderr, "Error: Unknown section [%s] in configuration file. " -			                 "BitlBee configuration must be put in a [settings] section!\n", ini->section ); +			fprintf( stderr, "Error: Unknown section [%s] in configuration file (line %d). " +			                 "BitlBee configuration must be put in a [settings] section!\n", ini->section, ini->line );  			return 0;  		}  	} | 
