From: phk Date: Tue, 24 Jun 2008 21:29:32 +0000 (+0000) Subject: Make the debug element conditional on DEBUG macro being defined. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f23c4449f075fb5aac5d9f2a01927650132225c;p=varnish 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 --- 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) \