[master] 54a38c1 struct ban_test is only used in cache_ban.c

Poul-Henning Kamp phk at FreeBSD.org
Thu Oct 22 17:40:38 CEST 2015


commit 54a38c1d44b0ef1e4b0746f90bf771924348e668
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Oct 22 05:47:28 2015 +0000

    struct ban_test is only used in cache_ban.c

diff --git a/bin/varnishd/cache/cache_ban.c b/bin/varnishd/cache/cache_ban.c
index 016c77c..8d6337c 100644
--- a/bin/varnishd/cache/cache_ban.c
+++ b/bin/varnishd/cache/cache_ban.c
@@ -50,6 +50,14 @@ struct ban * volatile ban_start;
 static struct ban *ban_magic;
 static pthread_t ban_thread;
 
+struct ban_test {
+	uint8_t			arg1;
+	const char		*arg1_spec;
+	uint8_t			oper;
+	const char		*arg2;
+	const void		*arg2_spec;
+};
+
 /*--------------------------------------------------------------------
  * Variables we can purge on
  */
diff --git a/bin/varnishd/cache/cache_ban.h b/bin/varnishd/cache/cache_ban.h
index fae2b80..ce0ae9e 100644
--- a/bin/varnishd/cache/cache_ban.h
+++ b/bin/varnishd/cache/cache_ban.h
@@ -102,14 +102,6 @@ struct ban {
 
 VTAILQ_HEAD(banhead_s,ban);
 
-struct ban_test {
-	uint8_t			arg1;
-	const char		*arg1_spec;
-	uint8_t			oper;
-	const char		*arg2;
-	const void		*arg2_spec;
-};
-
 bgthread_t ban_lurker;
 extern struct lock ban_mtx;
 extern int ban_shutdown;



More information about the varnish-commit mailing list