aboutsummaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-18 11:15:53 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-18 11:15:53 -0800
commite98574570ec0e355c6cff2b6e30bd992f20fe610 (patch)
tree69339683fc1e3831e6d553dcfd29bbd0a91f9d52 /utils.c
parent46f1747947503a6fab403e2d77e97408a47cbae7 (diff)
More static analysis cleanup
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;