From 982f17a6324901a4c9e34a5da4f3a8a12b5639cc Mon Sep 17 00:00:00 2001
From: Tim Wickberg <tim@schedmd.com>
Date: Mon, 28 Jan 2019 23:12:11 -0700
Subject: [PATCH] Move XMALLOC_MAGIC definition into xmalloc.c.

Private, does not need to be exposed externally.
---
 src/common/xmalloc.c | 1 +
 src/common/xmalloc.h | 2 --
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/common/xmalloc.c b/src/common/xmalloc.c
index 23270f93df7..37bcbfa1aef 100644
--- a/src/common/xmalloc.c
+++ b/src/common/xmalloc.c
@@ -63,6 +63,7 @@ static void malloc_assert_failed(char *, const char *, int,
           } while (0)
 #endif /* NDEBUG */
 
+#define XMALLOC_MAGIC 0x42
 
 /*
  * "Safe" version of malloc().
diff --git a/src/common/xmalloc.h b/src/common/xmalloc.h
index 8bab5e5c6a2..282e6eb0909 100644
--- a/src/common/xmalloc.h
+++ b/src/common/xmalloc.h
@@ -97,6 +97,4 @@ void slurm_xfree(void **, const char *, int, const char *);
 void *slurm_xrealloc(void **, size_t, bool, const char *, int, const char *);
 size_t slurm_xsize(void *, const char *, int, const char *);
 
-#define XMALLOC_MAGIC 0x42
-
 #endif /* !_XMALLOC_H */
-- 
GitLab