aboutsummaryrefslogtreecommitdiff
path: root/xmalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'xmalloc.c')
-rw-r--r--xmalloc.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/xmalloc.c b/xmalloc.c
index a9a6685c..8fb78f49 100644
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -1,21 +1,11 @@
-#include <assert.h>
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
-#include <syslog.h>
#include "xmalloc.h"
-
-static NORETURN COLD void
-fatal_error(const char *msg, int err)
-{
- syslog(LOG_ERR, "%s: %s", msg, strerror(err));
- errno = err;
- perror(msg);
- abort();
-}
+#include "debug.h"
static void *
check_alloc(void *alloc)