From b75662dde8a6d3e808c9c8d440a67df4e0899495 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 6 Dec 2008 15:12:34 +0000 Subject: Change how the tests are logged and failed. --- src/config.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/config.c') 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); -- cgit v1.2.3