[master] ebd1601 Reduce #include pollution

Poul-Henning Kamp phk at varnish-cache.org
Wed Oct 12 17:26:00 CEST 2011


commit ebd1601675c542b9004ae8d89b4e65b80779c668
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Oct 12 15:25:45 2011 +0000

    Reduce #include pollution

diff --git a/bin/varnishd/cache_hash.c b/bin/varnishd/cache_hash.c
index ebbe281..14c5e7c 100644
--- a/bin/varnishd/cache_hash.c
+++ b/bin/varnishd/cache_hash.c
@@ -58,7 +58,6 @@
 
 #include "cache.h"
 
-#include "cache_backend.h"
 #include "hash_slinger.h"
 #include "vav.h"
 #include "vsha256.h"
@@ -311,7 +310,7 @@ HSH_Lookup(struct sess *sp, struct objhead **poh)
 	CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
 	CHECK_OBJ_NOTNULL(sp->wrk, WORKER_MAGIC);
 	CHECK_OBJ_NOTNULL(sp->http, HTTP_MAGIC);
-	CHECK_OBJ_NOTNULL(sp->director, DIRECTOR_MAGIC);
+	AN(sp->director);
 	AN(hash);
 	w = sp->wrk;
 



More information about the varnish-commit mailing list