From 43aeadaab8c29351e506c03829c3dc74a9f6b86a Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 13 Jan 2021 19:01:49 -0800 Subject: Replaced _exit()s with exits() --- utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils.c') 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; -- cgit v1.2.3