]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdadm.h
Remove scattered checks for malloc success.
[thirdparty/mdadm.git] / mdadm.h
diff --git a/mdadm.h b/mdadm.h
index ff44312100ffd2a94dec26d406c644fed25316c5..3071c45be9af49bfa04e6636bde197ee50430de7 100644 (file)
--- a/mdadm.h
+++ b/mdadm.h
@@ -1313,6 +1313,11 @@ static inline int xasprintf(char **strp, const char *fmt, ...) {
 #define pr_err(fmt ...) fprintf(stderr, Name ": " fmt)
 #define cont_err(fmt ...) fprintf(stderr, "       " fmt)
 
+void *xmalloc(size_t len);
+void *xrealloc(void *ptr, size_t len);
+void *xcalloc(size_t num, size_t size);
+char *xstrdup(const char *str);
+
 #define        LEVEL_MULTIPATH         (-4)
 #define        LEVEL_LINEAR            (-1)
 #define        LEVEL_FAULTY            (-5)