[master] 2a9fc5e constify

Poul-Henning Kamp phk at FreeBSD.org
Tue Feb 24 17:32:28 CET 2015


commit 2a9fc5ee247251c9424eac0a856e711e25ca0f52
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Feb 24 16:32:22 2015 +0000

    constify

diff --git a/bin/varnishd/cache/cache_backend.h b/bin/varnishd/cache/cache_backend.h
index 339e19a..c7370a9 100644
--- a/bin/varnishd/cache/cache_backend.h
+++ b/bin/varnishd/cache/cache_backend.h
@@ -125,7 +125,7 @@ void VBP_Init(void);
 struct tcp_pool *VBT_Ref(const char *name, const struct suckaddr *ip4,
     const struct suckaddr *ip6);
 void VBT_Rel(struct tcp_pool **tpp);
-int VBT_Open(struct tcp_pool *tp, double tmo, const struct suckaddr **sa);
+int VBT_Open(const struct tcp_pool *tp, double tmo, const struct suckaddr **sa);
 void VBT_Recycle(struct tcp_pool *tp, struct vbc **vbc);
 void VBT_Close(struct tcp_pool *tp, struct vbc **vbc);
 struct vbc *VBT_Get(struct tcp_pool *tp, double tmo);
diff --git a/bin/varnishd/cache/cache_backend_tcp.c b/bin/varnishd/cache/cache_backend_tcp.c
index 70ae011..e82b27d 100644
--- a/bin/varnishd/cache/cache_backend_tcp.c
+++ b/bin/varnishd/cache/cache_backend_tcp.c
@@ -244,7 +244,7 @@ VBT_Rel(struct tcp_pool **tpp)
  */
 
 int
-VBT_Open(struct tcp_pool *tp, double tmo, const struct suckaddr **sa)
+VBT_Open(const struct tcp_pool *tp, double tmo, const struct suckaddr **sa)
 {
 	int s;
 	int msec;



More information about the varnish-commit mailing list