From 380ba5f3074a16fbaa8869d9594962d58b5f8608 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 13 Feb 2002 16:19:55 +0000 Subject: - don't need -DNDEBUG anymore. Instead, use -DIPTC_DEBUG to enable libiptc debugging. This is to make people at RedHat and Mandrake happy. - add debugging code for mangle5hooks table (will break debugging of iptables >= 1.2.6 on old kernels <= 2.4.18-pre6. *sigh* --- libiptc/libiptc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libiptc/libiptc.c') diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c index 3574ac8d..395b8c74 100644 --- a/libiptc/libiptc.c +++ b/libiptc/libiptc.c @@ -1,4 +1,4 @@ -/* Library which manipulates firewall rules. Version $Revision: 1.32 $ */ +/* Library which manipulates firewall rules. Version $Revision: 1.33 $ */ /* Architecture of firewall rules is as follows: * @@ -104,7 +104,7 @@ set_changed(TC_HANDLE_T h) h->changed = 1; } -#ifndef NDEBUG +#ifdef IPTC_DEBUG static void do_check(TC_HANDLE_T h, unsigned int line); #define CHECK(h) do { if (!getenv("IPTC_NO_CHECK")) do_check((h), __LINE__); } while(0) #else -- cgit v1.2.3