[master] 53a28ab These #includes look surplus to requirements.

Poul-Henning Kamp phk at varnish-cache.org
Wed Oct 12 13:33:42 CEST 2011


commit 53a28ab7ae637884ffa91ac1bed756de6febc32b
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Oct 12 11:33:23 2011 +0000

    These #includes look surplus to requirements.

diff --git a/bin/varnishd/cache_fetch.c b/bin/varnishd/cache_fetch.c
index 26489b6..71fc8e2 100644
--- a/bin/varnishd/cache_fetch.c
+++ b/bin/varnishd/cache_fetch.c
@@ -29,7 +29,6 @@
 
 #include "config.h"
 
-#include <fcntl.h>
 #include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/bin/varnishd/cache_hash.c b/bin/varnishd/cache_hash.c
index 12855e1..ebbe281 100644
--- a/bin/varnishd/cache_hash.c
+++ b/bin/varnishd/cache_hash.c
@@ -55,7 +55,6 @@
 #include <math.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
 
 #include "cache.h"
 
diff --git a/bin/varnishd/cache_response.c b/bin/varnishd/cache_response.c
index 9768eeb..4f0334b 100644
--- a/bin/varnishd/cache_response.c
+++ b/bin/varnishd/cache_response.c
@@ -29,12 +29,6 @@
 
 #include "config.h"
 
-#include <sys/types.h>
-#include <sys/time.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-
 #include "cache.h"
 
 #include "vct.h"
diff --git a/bin/varnishd/cache_vcl.c b/bin/varnishd/cache_vcl.c
index c77ab08..cc67a7f 100644
--- a/bin/varnishd/cache_vcl.c
+++ b/bin/varnishd/cache_vcl.c
@@ -34,7 +34,6 @@
 #include "config.h"
 
 #include <dlfcn.h>
-#include <stdio.h>
 #include <stdlib.h>
 
 #include "cache.h"
diff --git a/bin/varnishd/cache_vrt_re.c b/bin/varnishd/cache_vrt_re.c
index d9a7090..e6f854b 100644
--- a/bin/varnishd/cache_vrt_re.c
+++ b/bin/varnishd/cache_vrt_re.c
@@ -32,7 +32,6 @@
 #include "config.h"
 
 #include <ctype.h>
-#include <stdlib.h>
 
 #include "cache.h"
 
diff --git a/bin/varnishd/cache_vrt_var.c b/bin/varnishd/cache_vrt_var.c
index a00b1b7..1a16e16 100644
--- a/bin/varnishd/cache_vrt_var.c
+++ b/bin/varnishd/cache_vrt_var.c
@@ -36,8 +36,6 @@
 #include "cache.h"
 
 #include "cache_backend.h"
-#include "hash_slinger.h"
-#include "vrt.h"
 #include "vrt_obj.h"
 #include "vtcp.h"
 #include "vtim.h"
diff --git a/bin/varnishd/hash_classic.c b/bin/varnishd/hash_classic.c
index 1428864..fc88757 100644
--- a/bin/varnishd/hash_classic.c
+++ b/bin/varnishd/hash_classic.c
@@ -31,11 +31,8 @@
 
 #include "config.h"
 
-#include <sys/types.h>
-
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
 
 #include "cache.h"
 



More information about the varnish-commit mailing list