diff options
Diffstat (limited to 'src/shared.c')
| -rw-r--r-- | src/shared.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared.c b/src/shared.c index 7be3c28..250b348 100644 --- a/src/shared.c +++ b/src/shared.c | |||
| @@ -10,7 +10,7 @@ void* xcalloc(size_t nmemb, size_t size) { | |||
| 10 | void *mem = calloc(nmemb, size); | 10 | void *mem = calloc(nmemb, size); |
| 11 | 11 | ||
| 12 | if(mem == NULL) { | 12 | if(mem == NULL) { |
| 13 | #if defined ___VXGG___XCALLOC_EXIT_ON_ERROR___ && ___VXGG___XCALLOC_EXIT_ON_ERROR___ > 0 | 13 | #if defined ___VXGG___XALLOC_EXIT_ON_ERROR___ && ___VXGG___XALLOC_EXIT_ON_ERROR___ > 0 |
| 14 | error(1, errno, "<xcalloc> Could not allocate memory"); | 14 | error(1, errno, "<xcalloc> Could not allocate memory"); |
| 15 | #endif | 15 | #endif |
| 16 | 16 | ||
| @@ -24,7 +24,7 @@ void* xcalloc(size_t nmemb, size_t size) { | |||
| 24 | void* xreallocarray(void *ptr, size_t nmemb, size_t size) { | 24 | void* xreallocarray(void *ptr, size_t nmemb, size_t size) { |
| 25 | void *mem = reallocarray(ptr, nmemb, size); | 25 | void *mem = reallocarray(ptr, nmemb, size); |
| 26 | if(mem == NULL) { | 26 | if(mem == NULL) { |
| 27 | #if defined ___VXGG___XCALLOC_EXIT_ON_ERROR___ && ___VXGG___XCALLOC_EXIT_ON_ERROR___ > 0 | 27 | #if defined ___VXGG___XALLOC_EXIT_ON_ERROR___ && ___VXGG___XALLOC_EXIT_ON_ERROR___ > 0 |
| 28 | error(1, errno, "<xreallocarray> Could not allocate memory"); | 28 | error(1, errno, "<xreallocarray> Could not allocate memory"); |
| 29 | 29 | ||
| 30 | #endif | 30 | #endif |
