aboutsummaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils.c b/utils.c
index 58f8e2d..93de1f4 100644
--- a/utils.c
+++ b/utils.c
@@ -145,7 +145,7 @@ void *memcheck(void *p)
{
if (p == NULL) {
fprintf(stderr, "memory allocation failure\n");
- exit(1);
+ exit(EXIT_FAILURE);
}
return p;
}
@@ -169,7 +169,7 @@ void xfree(void *p)
{
if (*(void**)p == NULL) {
fprintf(stderr, "Attempt to free(NULL)\n");
- exit(1);
+ exit(EXIT_FAILURE);
}
free(*(void**)p);
p = NULL;