summaryrefslogtreecommitdiffstats
path: root/xmalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'xmalloc.c')
-rw-r--r--xmalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmalloc.c b/xmalloc.c
index dac30eb6..e28d3bd6 100644
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -22,6 +22,7 @@
*/
#include "xmalloc.h"
+#include "mdadm_status.h"
#include <string.h>
#include <stdio.h>
@@ -32,8 +33,7 @@ static void *exit_memory_alloc_failure(void)
{
fprintf(stderr, "Memory allocation failure - aborting\n");
- /* TODO: replace with MDADM_STATUS_MEM_FAIL */
- exit(1);
+ exit(MDADM_STATUS_MEM_FAIL);
}
void *xmalloc(size_t len)