summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-07-26 13:25:31 -0700
committerMichael Pavone <pavone@retrodev.com>2015-07-26 13:25:31 -0700
commit3372e57c62e3ff5f93c5541ef5b969229d132463 (patch)
treedf1a91e13ebef01d2ad636bd940c7e514a6919ff /config.c
parent4755aa94deb0a8fb90bf74033d370e9370d69ca2 (diff)
parentbee8b42029900ca034675c54d98813a61ca4407a (diff)
Merge
Diffstat (limited to 'config.c')
-rw-r--r--config.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/config.c b/config.c
index 16091b0..c434a43 100644
--- a/config.c
+++ b/config.c
@@ -59,8 +59,7 @@ tern_node * parse_config_int(char **state, int started, int *line)
if (started) {
return head;
}
- fprintf(stderr, "unexpected } on line %d\n", *line);
- exit(1);
+ fatal_error("unexpected } on line %d\n", *line);
}
char * end = curline + len - 1;
@@ -141,7 +140,8 @@ success:
return ret;
}
no_config:
- fputs("Failed to find a config file in ~/.config/blastem/blastem.cfg or in the blastem executable directory\n", stderr);
- exit(1);
+ fatal_error("Failed to find a config file in ~/.config/blastem/blastem.cfg or in the blastem executable directory\n");
+ //this will never get reached, but the compiler doesn't know that. Let's make it happy
+ return NULL;
}