Purpose of commit: cleanup
Commit summary:
---------------
The malloc debugging stuff appears to have had a few residual issues
that I've fixed (trying to resolve another checkin!).
MODULES =
endif
-ifdef WITH_MEMORY_DEBUG
+ifeq ($(WITH_MEMORY_DEBUG),yes)
EXTRAS += pam_malloc.o
endif
#ifndef DEBUG
#define DEBUG
#endif
-
#include "pam_private.h"
#include <security/pam_malloc.h>
void pam_exit(int i
, const char *file, const char *fn, const int line)
{
+ D(("time to exit"));
+
_fn("exit");
if (on(0)) err(("passed (%d)", i));
#include <security/_pam_aconf.h>
+#ifdef MEMORY_DEBUG
+# undef exit
+#endif /* MEMORY_DEBUG */
+
#include <stdio.h>
#include <stdlib.h>
#include <syslog.h>
#include <security/_pam_aconf.h>
+#ifdef MEMORY_DEBUG
+# undef exit
+# undef strdup
+# undef free
+#endif /* MEMORY_DEBUG */
+
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <security/_pam_aconf.h>
+#if defined(MAIN) && defined(MEMORY_DEBUG)
+# undef exit
+#endif /* defined(MAIN) && defined(MEMORY_DEBUG) */
+
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <security/_pam_aconf.h>
+#ifdef MEMORY_DEBUG
+# undef exit
+# undef strdup
+# undef free
+#endif /* MEMORY_DEBUG */
+
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>