Fix bogus error messages on web config

This commit is contained in:
Ron Pedde
2007-10-23 04:23:50 +00:00
parent 60f8d1299f
commit fffe34e5eb
3 changed files with 15 additions and 7 deletions

View File

@@ -427,7 +427,7 @@ int main(int argc, char *argv[]) {
configfile="mt-daapd.conf";
}
if(conf_read(configfile) != CONF_E_SUCCESS) {
if(CONF_E_SUCCESS != conf_read(configfile)) {
fprintf(stderr,"Error reading config file (%s)\n",configfile);
exit(EXIT_FAILURE);
}
@@ -437,7 +437,7 @@ int main(int argc, char *argv[]) {
if(convert_conf) {
fprintf(stderr,"Converting config file...\n");
if(!conf_write()) {
if(CONF_E_SUCCESS != conf_write()) {
fprintf(stderr,"Error writing config file.\n");
exit(EXIT_FAILURE);
}