summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 3c92ad2..4f71695 100644
--- a/src/util.c
+++ b/src/util.c
@@ -60,6 +60,17 @@ JEMALLOC_EXPORT void (*je_malloc_message)(void *, const char *s) =
wrtmessage;
/*
+ * Wrapper around malloc_message() that avoids the need for
+ * je_malloc_message(...) throughout the code.
+ */
+void
+malloc_write(const char *s)
+{
+
+ je_malloc_message(NULL, s);
+}
+
+/*
* glibc provides a non-standard strerror_r() when _GNU_SOURCE is defined, so
* provide a wrapper.
*/