]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
fix making XMALLOC_DEBUG on by default
authorwessels <>
Mon, 15 Apr 1996 10:23:42 +0000 (10:23 +0000)
committerwessels <>
Mon, 15 Apr 1996 10:23:42 +0000 (10:23 +0000)
lib/util.c

index 1b9b35823d64e09a13956732347f105b95d91e93..08d036d7f9b0a2859fef0684c2618fc9a761d3b1 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: util.c,v 1.5 1996/04/15 03:57:04 wessels Exp $ */
+/* $Id: util.c,v 1.6 1996/04/15 04:23:42 wessels Exp $ */
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -17,9 +17,8 @@ extern char *sys_errlist[];
 
 #include "autoconf.h"
 
-#define XMALLOC_DEBUG
 
-#ifdef XMALLOC_DEBUG
+#if XMALLOC_DEBUG
 #define DBG_ARRY_SZ (2<<8)
 #define DBG_ARRY_BKTS (2<<8)
 static void *malloc_ptrs[DBG_ARRY_BKTS][DBG_ARRY_SZ];
@@ -108,7 +107,7 @@ void *xmalloc(sz)
        }
        exit(1);
     }
-#ifdef XMALLOC_DEBUG
+#if XMALLOC_DEBUG
     check_malloc(p, sz);
 #endif
     return (p);
@@ -120,7 +119,7 @@ void *xmalloc(sz)
 void xfree(s)
      void *s;
 {
-#ifdef XMALLOC_DEBUG
+#if XMALLOC_DEBUG
     check_free(s);
 #endif
     if (s != NULL)
@@ -131,7 +130,7 @@ void xfree(s)
 void xxfree(s)
      void *s;
 {
-#ifdef XMALLOC_DEBUG
+#if XMALLOC_DEBUG
     check_free(s);
 #endif
     free(s);
@@ -159,7 +158,7 @@ void *xrealloc(s, sz)
        }
        exit(1);
     }
-#ifdef XMALLOC_DEBUG
+#if XMALLOC_DEBUG
     check_malloc(p, sz);
 #endif
     return (p);
@@ -189,7 +188,7 @@ void *xcalloc(n, sz)
        }
        exit(1);
     }
-#ifdef XMALLOC_DEBUG
+#if XMALLOC_DEBUG
     check_malloc(p, sz * n);
 #endif
     return (p);