aboutsummaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-13 19:01:49 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-13 19:01:49 -0800
commit43aeadaab8c29351e506c03829c3dc74a9f6b86a (patch)
treeaa8ec115dee11f7a8adcd9f9e1a649bb5e985fb3 /utils.c
parent3443d817150e641221749bf129cc6716e6baaf32 (diff)
Replaced _exit()s with exits()
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 b3feb86..616255f 100644
--- a/utils.c
+++ b/utils.c
@@ -194,7 +194,7 @@ void *memcheck(void *p)
{
if (p == NULL) {
fprintf(stderr, "memory allocation failure\n");
- _exit(1);
+ exit(1);
}
return p;
}
@@ -218,7 +218,7 @@ void xfree(void *p)
{
if (*(void**)p == NULL) {
fprintf(stderr, "Attempt to free(NULL)\n");
- _exit(1);
+ exit(1);
}
free(*(void**)p);
p = NULL;