diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-07-26 13:25:31 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-07-26 13:25:31 -0700 |
commit | 3372e57c62e3ff5f93c5541ef5b969229d132463 (patch) | |
tree | df1a91e13ebef01d2ad636bd940c7e514a6919ff /config.c | |
parent | 4755aa94deb0a8fb90bf74033d370e9370d69ca2 (diff) | |
parent | bee8b42029900ca034675c54d98813a61ca4407a (diff) |
Merge
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } |