diff options
author | Stef Walter <stef@memberwebs.com> | 2008-12-06 15:12:34 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2008-12-06 15:12:34 +0000 |
commit | b75662dde8a6d3e808c9c8d440a67df4e0899495 (patch) | |
tree | a3b1c47b929eec817b3f7ab14c4aa4dc0d3eae4e /src/config.c | |
parent | 65275a8f24f4b408cb2f3c62c0fe8db2fc8ecf3c (diff) |
Change how the tests are logged and failed.
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 8 |
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); |