]> err.no Git - varnish/commitdiff
Make the debug element conditional on DEBUG macro being defined.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 24 Jun 2008 21:29:32 +0000 (21:29 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 24 Jun 2008 21:29:32 +0000 (21:29 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2793 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/mgt_event.c

index 2ce303133ff9e31322c103d729c70796f46cdd25..b93523123483e0e0b4ec416d19ebaa894794fac3 100644 (file)
@@ -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)                       \