aboutsummaryrefslogtreecommitdiff
path: root/src/util/memory.c
diff options
context:
space:
mode:
authorJ08nY2017-05-29 15:11:38 +0200
committerJ08nY2017-05-29 15:11:38 +0200
commitba8c1f2bc424205cbb167b3c65ce184912c6173a (patch)
treedb21c80b3e7ed411ddbdc4151f82b875b83f279e /src/util/memory.c
parent03eedf3f3e69093af6fd2717bbad04ffdfc7c25a (diff)
downloadecgen-ba8c1f2bc424205cbb167b3c65ce184912c6173a.tar.gz
ecgen-ba8c1f2bc424205cbb167b3c65ce184912c6173a.tar.zst
ecgen-ba8c1f2bc424205cbb167b3c65ce184912c6173a.zip
Diffstat (limited to 'src/util/memory.c')
-rw-r--r--src/util/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/memory.c b/src/util/memory.c
index 9724c81..2c2281c 100644
--- a/src/util/memory.c
+++ b/src/util/memory.c
@@ -9,7 +9,7 @@ void *alloc(void *(*fun)(size_t), size_t size) {
void *result = fun(size);
if (!result) {
perror("Couldn't alloc.");
- exit(1);
+ exit(EXIT_FAILURE);
}
return result;
}
@@ -22,7 +22,7 @@ void *try_realloc(void *ptr, size_t size) {
void *result = pari_realloc(ptr, size);
if (!result) {
perror("Couldn't alloc.");
- exit(1);
+ exit(EXIT_FAILURE);
}
return result;
} \ No newline at end of file