[3.0] 1142de7 Constify
Tollef Fog Heen
tfheen at varnish-cache.org
Wed Aug 17 11:28:33 CEST 2011
commit 1142de717b7fbcd1d6b0d6a9f75533dd4ee3a560
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