[master] bfbb26e No need for this to live in common.h

Poul-Henning Kamp phk at FreeBSD.org
Tue Sep 26 21:53:08 UTC 2017


commit bfbb26e211a9105ddcbf9fd275ff0777db0cd26b
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Sep 26 21:47:36 2017 +0000

    No need for this to live in common.h

diff --git a/bin/varnishd/common/common.h b/bin/varnishd/common/common.h
index b969cc3..850ad05 100644
--- a/bin/varnishd/common/common.h
+++ b/bin/varnishd/common/common.h
@@ -46,10 +46,6 @@
 
 /**********************************************************************/
 
-#if !defined(MAX_THREAD_POOLS)
-#  define MAX_THREAD_POOLS 32
-#endif
-
 extern pid_t mgt_pid;
 #define ASSERT_MGT() do { assert(getpid() == mgt_pid);} while (0)
 
diff --git a/bin/varnishd/mgt/mgt_main.c b/bin/varnishd/mgt/mgt_main.c
index d4eec41..f27f04f 100644
--- a/bin/varnishd/mgt/mgt_main.c
+++ b/bin/varnishd/mgt/mgt_main.c
@@ -287,6 +287,10 @@ init_params(struct cli *cli)
 		def = low;
 	MCF_ParamConf(MCF_DEFAULT, "thread_pool_stack", "%jdb", (intmax_t)def);
 
+#if !defined(MAX_THREAD_POOLS)
+#  define MAX_THREAD_POOLS 32
+#endif
+
 	MCF_ParamConf(MCF_MAXIMUM, "thread_pools", "%d", MAX_THREAD_POOLS);
 
 	MCF_InitParams(cli);


More information about the varnish-commit mailing list