]> arthur.barton.de Git - ngircd-alex.git/commitdiff
array_free(): enable debug code only when DEBUG_ARRAY is #define'd.
authorAlexander Barton <alex@barton.de>
Thu, 28 Dec 2006 12:53:41 +0000 (12:53 +0000)
committerAlexander Barton <alex@barton.de>
Thu, 28 Dec 2006 12:53:41 +0000 (12:53 +0000)
src/ngircd/array.c

index 1342c670060db94242267c19c6c32a5eca5f4a94..d26d5e39b15874e1eb147da24fd01954e5cdd1c4 100644 (file)
@@ -12,7 +12,7 @@
 
 #include "array.h"
 
 
 #include "array.h"
 
-static char UNUSED id[] = "$Id: array.c,v 1.13 2006/12/17 22:52:43 fw Exp $";
+static char UNUSED id[] = "$Id: array.c,v 1.14 2006/12/28 12:53:41 alex Exp $";
 
 #include <assert.h>
 
 
 #include <assert.h>
 
@@ -270,7 +270,7 @@ void
 array_free(array * a)
 {
        assert(a != NULL);
 array_free(array * a)
 {
        assert(a != NULL);
-#ifdef DEBUG
+#ifdef DEBUG_ARRAY
        Log(LOG_DEBUG,
            "array_free(): %u bytes free'd (%u bytes still used at time of free()).",
            a->allocated, a->used);
        Log(LOG_DEBUG,
            "array_free(): %u bytes free'd (%u bytes still used at time of free()).",
            a->allocated, a->used);