[3.0] 1207602 Make -x dumprst always available

Tollef Fog Heen tfheen at varnish-cache.org
Tue Aug 30 10:53:38 CEST 2011


commit 1207602d1b9aeda101e0accbf0112807553ed74a
Author: Tollef Fog Heen <tfheen at varnish-software.com>
Date:   Tue Aug 30 10:43:35 2011 +0200

    Make -x dumprst always available

diff --git a/bin/varnishd/mgt_param.c b/bin/varnishd/mgt_param.c
index 45468c3..de93679 100644
--- a/bin/varnishd/mgt_param.c
+++ b/bin/varnishd/mgt_param.c
@@ -1153,8 +1153,6 @@ MCF_ParamInit(struct cli *cli)
 
 /*--------------------------------------------------------------------*/
 
-#ifdef DIAGNOSTICS
-
 void
 MCF_DumpRst(void)
 {
@@ -1218,4 +1216,3 @@ MCF_DumpRst(void)
 	}
 	printf("\n");
 }
-#endif /* DIAGNOSTICS */
diff --git a/bin/varnishd/varnishd.c b/bin/varnishd/varnishd.c
index 94ae11c..5fb054a 100644
--- a/bin/varnishd/varnishd.c
+++ b/bin/varnishd/varnishd.c
@@ -503,12 +503,10 @@ main(int argc, char * const *argv)
 			VCS_Message("varnishd");
 			exit(0);
 		case 'x':
-#ifdef DIAGNOSTICS
 			if (!strcmp(optarg, "dumprst")) {
 				MCF_DumpRst();
 				exit (0);
 			}
-#endif /* DIAGNOSTICS */
 			usage();
 			break;
 		case 'w':



More information about the varnish-commit mailing list