summaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config.c b/src/config.c
index 48b4151..652556e 100644
--- a/src/config.c
+++ b/src/config.c
@@ -38,20 +38,20 @@ p11t_config_parse(const char* filename)
f = fopen(filename, "r");
if(f == NULL)
- p11t_msg_exit(1, "couldn't open config file: %s", filename);
+ p11t_msg_fatal("couldn't open config file: %s", filename);
/* Figure out size */
if(fseek(f, 0, SEEK_END) == -1 || (len = ftell(f)) == -1 || fseek(f, 0, SEEK_SET) == -1)
- p11t_msg_exit(1, "couldn't seek config file: %s", filename);
+ p11t_msg_fatal("couldn't seek config file: %s", filename);
assert(!config_data);
config_data = malloc(len + 2);
if(!config_data)
- p11t_msg_exit(1, "out of memory");
+ p11t_msg_fatal("out of memory");
/* And read in one block */
if(fread(config_data, 1, len, f) != len)
- p11t_msg_exit(1, "couldn't read config file: %s", filename);
+ p11t_msg_fatal("couldn't read config file: %s", filename);
fclose(f);