[master] 356144b Use precise argument type
Poul-Henning Kamp
phk at FreeBSD.org
Fri Jan 9 15:54:29 CET 2015
commit 356144b7d9bccc909f3128cf9b096d93a356c9ad
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Thu Jan 8 07:01:03 2015 +0000
Use precise argument type
diff --git a/bin/varnishd/cache/cache_backend.c b/bin/varnishd/cache/cache_backend.c
index f2d4f8f..a062a48 100644
--- a/bin/varnishd/cache/cache_backend.c
+++ b/bin/varnishd/cache/cache_backend.c
@@ -503,14 +503,12 @@ vbe_dir_http1pipe(const struct director *d, struct req *req, struct busyobj *bo)
void
VRT_init_vbe(VRT_CTX, struct director **bp, int idx,
- const void *priv)
+ const struct vrt_backend *t)
{
- const struct vrt_backend *t;
struct vbe_dir *vs;
ASSERT_CLI();
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
- t = priv;
ALLOC_OBJ(vs, VDI_SIMPLE_MAGIC);
XXXAN(vs);
diff --git a/include/vrt.h b/include/vrt.h
index ff3e996..f9f77ba 100644
--- a/include/vrt.h
+++ b/include/vrt.h
@@ -225,7 +225,7 @@ void VRT_Rollback(VRT_CTX, const struct http *);
void VRT_synth_page(VRT_CTX, const char *, ...);
/* Backend related */
-void VRT_init_vbe(VRT_CTX, struct director **, int idx, const void *priv);
+void VRT_init_vbe(VRT_CTX, struct director **, int idx, const struct vrt_backend *);
void VRT_fini_vbe(VRT_CTX, struct director *);
/* Suckaddr related */
More information about the varnish-commit
mailing list