From 5f23c4449f075fb5aac5d9f2a01927650132225c Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 24 Jun 2008 21:29:32 +0000 Subject: [PATCH] Make the debug element conditional on DEBUG macro being defined. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2793 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/mgt_event.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/varnish-cache/bin/varnishd/mgt_event.c b/varnish-cache/bin/varnishd/mgt_event.c index 2ce30313..b9352312 100644 --- a/varnish-cache/bin/varnishd/mgt_event.c +++ b/varnish-cache/bin/varnishd/mgt_event.c @@ -45,6 +45,8 @@ #include "miniobj.h" #include "binary_heap.h" +#undef DEBUG_EVENTS + /* INFTIM indicates an infinite timeout for poll(2) */ #ifndef INFTIM #define INFTIM -1 @@ -72,13 +74,13 @@ struct evbase { unsigned char disturbed; unsigned psig; pthread_t thread; +#ifdef DEBUG_EVENTS FILE *debug; +#endif }; /*--------------------------------------------------------------------*/ -#undef DEBUG_EVENTS - #ifdef DEBUG_EVENTS #define DBG(evb, ...) do { \ if ((evb)->debug != NULL) \ -- 2.39.5