summaryrefslogtreecommitdiffstats
path: root/libdimension/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/error.c')
-rw-r--r--libdimension/error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/error.c b/libdimension/error.c
index 1705a34..9dae673 100644
--- a/libdimension/error.c
+++ b/libdimension/error.c
@@ -31,7 +31,7 @@ dmnsn_report_error(dmnsn_severity severity, const char *func, const char *str)
{
if (severity >= dmnsn_get_resilience()) {
fprintf(stderr, "Dimension ERROR: %s(): %s\n", func, str);
- exit(1);
+ exit(EXIT_FAILURE);
} else {
fprintf(stderr, "Dimension WARNING: %s(): %s\n", func, str);
}
@@ -59,7 +59,7 @@ dmnsn_set_resilience(dmnsn_severity resilience)
if (resilience > DMNSN_SEVERITY_HIGH) {
fprintf(stderr, "Dimension ERROR: %s(): %s\n", __func__,
"Resilience has wrong value.");
- exit(1);
+ exit(EXIT_FAILURE);
}
if (pthread_mutex_lock(&dmnsn_resilience_mutex) != 0) {