From 9934052b54fd4dcd2339a2beb87ccc81b5e144bd Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 13 Oct 2011 18:03:10 -0500 Subject: Remove mcheck.h support When was the last time anyone used this? That's what I thought. Signed-off-by: Dan McGee --- configure.ac | 2 -- src/pacman/pacman.c | 8 -------- 2 files changed, 10 deletions(-) diff --git a/configure.ac b/configure.ac index a5a5bbae..c23da75e 100644 --- a/configure.ac +++ b/configure.ac @@ -295,8 +295,6 @@ AC_MSG_CHECKING(for debug mode request) if test "x$debug" = "xyes" ; then AC_MSG_RESULT(yes) AC_DEFINE([PACMAN_DEBUG], , [Enable debug code]) - # Check for mcheck - AC_CHECK_HEADERS([mcheck.h]) # Check for -fstack-protector availability GCC_STACK_PROTECT_LIB GCC_STACK_PROTECT_CC diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index d14b8879..5ebced25 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -39,9 +39,6 @@ #include /* uname */ #include /* setlocale */ #include -#if defined(PACMAN_DEBUG) && defined(HAVE_MCHECK_H) -#include /* debug tracing (mtrace) */ -#endif /* alpm */ #include @@ -769,11 +766,6 @@ int main(int argc, char *argv[]) uid_t myuid = geteuid(); #endif -#if defined(PACMAN_DEBUG) && defined(HAVE_MCHECK_H) - /*setenv("MALLOC_TRACE","pacman.mtrace", 0);*/ - mtrace(); -#endif - /* Set signal handlers */ /* Set up the structure to specify the new action. */ new_action.sa_handler = handler; -- cgit v1.2.3-70-g09d2