summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-04-10 16:00:04 +0000
committerTavian Barnes <tavianator@gmail.com>2009-04-10 16:00:04 +0000
commitbb66ae775e0b5ef4836b4ad63565121759dbe776 (patch)
treeb01ab292ddda06bf96f2e52edc64e27b94cb7c04
parent4433f070f053a0b53926181906b3095f0842e26f (diff)
downloaddimension-bb66ae775e0b5ef4836b4ad63565121759dbe776.tar.xz
Use exit(EXIT_FAILURE) in dmnsn_report_error.
-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) {