[master] cd55687 Constify

Poul-Henning Kamp phk at varnish-cache.org
Mon Aug 15 09:29:55 CEST 2011


commit cd55687a540fabb5ad37a28e4cd87fef0ade8a18
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Aug 15 07:29:25 2011 +0000

    Constify

diff --git a/bin/varnishd/cache_backend.h b/bin/varnishd/cache_backend.h
index c065218..d2de06e 100644
--- a/bin/varnishd/cache_backend.h
+++ b/bin/varnishd/cache_backend.h
@@ -147,7 +147,7 @@ void VBE_DropRefLocked(struct backend *b);
 /* cache_backend_poll.c */
 void VBP_Insert(struct backend *b, struct vrt_backend_probe const *p, const char *hosthdr);
 void VBP_Remove(struct backend *b, struct vrt_backend_probe const *p);
-void VBP_Use(struct backend *b, const struct vrt_backend_probe const *p);
+void VBP_Use(const struct backend *b, const struct vrt_backend_probe const *p);
 
 /* Init functions for directors */
 typedef void dir_init_f(struct cli *, struct director **, int , const void*);
diff --git a/bin/varnishd/cache_backend_poll.c b/bin/varnishd/cache_backend_poll.c
index d7b5268..e504f0c 100644
--- a/bin/varnishd/cache_backend_poll.c
+++ b/bin/varnishd/cache_backend_poll.c
@@ -510,7 +510,7 @@ VBP_Insert(struct backend *b, const struct vrt_backend_probe *p, const char *hos
 }
 
 void
-VBP_Use(struct backend *b, const struct vrt_backend_probe *p)
+VBP_Use(const struct backend *b, const struct vrt_backend_probe *p)
 {
 	struct vbp_target *vt;
 	struct vbp_vcl *vcl;



More information about the varnish-commit mailing list