From ee3a6cab09c8acaf6706b3710f5652e9be43b57e Mon Sep 17 00:00:00 2001 From: Mariusz Tkaczyk Date: Wed, 25 Sep 2024 13:16:10 +0200 Subject: mdadm: add xmalloc.h Move memory declaration helpers outside mdadm.h. They seems to be useful so keep them but include separatelly. Rework them to not reffer to Name[] declared internally in mdadm/mdmon. This is first step to start decomplexing mdadm.h. Signed-off-by: Mariusz Tkaczyk --- Create.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Create.c') diff --git a/Create.c b/Create.c index 7fde1c16..1640f21e 100644 --- a/Create.c +++ b/Create.c @@ -23,9 +23,11 @@ */ #include "mdadm.h" -#include "udev.h" #include "md_u.h" #include "md_p.h" +#include "udev.h" +#include "xmalloc.h" + #include #include #include -- cgit v1.2.3