summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@banu.com>2009-09-23 07:12:30 +0530
committerMukund Sivaraman <muks@banu.com>2009-09-27 08:09:22 +0530
commitfc7415a5b0c53ed40a1ed64a00e1fde7f7b35646 (patch)
treedcd374e9e6f74bd4045baaaa3fc450b87303df4d
parentd102ed4ed39d39cf3777825f795ee95e41407d71 (diff)
downloadtinyproxy-fc7415a5b0c53ed40a1ed64a00e1fde7f7b35646.tar.gz
tinyproxy-fc7415a5b0c53ed40a1ed64a00e1fde7f7b35646.zip
Include debugging functions only when debug mode is used
-rw-r--r--src/heap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/heap.c b/src/heap.c
index ba25e7e..e71b9ab 100644
--- a/src/heap.c
+++ b/src/heap.c
@@ -27,6 +27,8 @@
#include "heap.h"
#include "text.h"
+#ifndef NDEBUG
+
void *debugging_calloc (size_t nmemb, size_t size, const char *file,
unsigned long line)
{
@@ -91,6 +93,8 @@ char *debugging_strdup (const char *s, const char *file, unsigned long line)
return ptr;
}
+#endif /* !NDEBUG */
+
/*
* Allocate a block of memory in the "shared" memory region.
*