[master] cda99e3 Move variable inside #ifdef
Poul-Henning Kamp
phk at FreeBSD.org
Fri May 22 13:32:19 CEST 2015
commit cda99e35b5f163fe0522bb81535f056668363e8b
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Fri May 22 11:32:10 2015 +0000
Move variable inside #ifdef
diff --git a/bin/varnishd/cache/cache_acceptor.c b/bin/varnishd/cache/cache_acceptor.c
index 210737e..9ade0ad 100644
--- a/bin/varnishd/cache/cache_acceptor.c
+++ b/bin/varnishd/cache/cache_acceptor.c
@@ -478,7 +478,6 @@ vca_acct(void *arg)
{
struct listen_sock *ls;
double t0, now;
- int i;
THR_SetName("cache-acceptor");
(void)arg;
@@ -491,6 +490,7 @@ vca_acct(void *arg)
vca_tcp_opt_set(ls->sock, 1);
#ifdef HAVE_ACCEPT_FILTERS
if (cache_param->accept_filter) {
+ int i;
i = VTCP_filter_http(ls->sock);
if (i)
VSL(SLT_Error, ls->sock,
More information about the varnish-commit
mailing list