summaryrefslogtreecommitdiffstats
path: root/src/messages.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/messages.c')
-rw-r--r--src/messages.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/messages.c b/src/messages.c
index 7a54e0a..2373fbf 100644
--- a/src/messages.c
+++ b/src/messages.c
@@ -82,14 +82,7 @@
#include <pwd.h>
#include <grp.h>
-/* The functions are actually macros so that we can pick up the file and line
- number information for debugging error messages without the user having to
- pass those in every time. */
-#define xcalloc(n, size) x_calloc((n), (size), __FILE__, __LINE__)
-#define xmalloc(size) x_malloc((size), __FILE__, __LINE__)
-#define xrealloc(p, size) x_realloc((p), (size), __FILE__, __LINE__)
-#define xstrdup(p) x_strdup((p), __FILE__, __LINE__)
-#define xstrndup(p, size) x_strndup((p), (size), __FILE__, __LINE__)
+#include "xmalloc.h"
/* These are the currently-supported types of traces. */
enum message_trace {