[6.0] 76af3fcae Constify

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Wed Oct 31 13:08:07 UTC 2018


commit 76af3fcae38ddae1e0baf5d33024a62b4a9dae5e
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Sat Aug 25 11:30:15 2018 +0200

    Constify

diff --git a/bin/varnishd/cache/cache_varnishd.h b/bin/varnishd/cache/cache_varnishd.h
index 92f21d53d..44cacac36 100644
--- a/bin/varnishd/cache/cache_varnishd.h
+++ b/bin/varnishd/cache/cache_varnishd.h
@@ -388,7 +388,7 @@ void VCL_Poll(void);
 void VCL_Ref(struct vcl *);
 void VCL_Refresh(struct vcl **);
 void VCL_Rel(struct vcl **);
-void VCL_Onboard(struct req *, struct busyobj *);
+void VCL_Onboard(const struct req *, const struct busyobj *);
 const char *VCL_Return_Name(unsigned);
 const char *VCL_Method_Name(unsigned);
 void VCL_Bo2Ctx(struct vrt_ctx *, struct busyobj *);
diff --git a/bin/varnishd/cache/cache_vcl_vrt.c b/bin/varnishd/cache/cache_vcl_vrt.c
index 36e34b53a..28132b1d0 100644
--- a/bin/varnishd/cache/cache_vcl_vrt.c
+++ b/bin/varnishd/cache/cache_vcl_vrt.c
@@ -74,7 +74,7 @@ VCL_Method_Name(unsigned m)
 /*--------------------------------------------------------------------*/
 
 void
-VCL_Onboard(struct req *req, struct busyobj *bo)
+VCL_Onboard(const struct req *req, const struct busyobj *bo)
 {
 	
 	CHECK_OBJ_ORNULL(req, REQ_MAGIC);


More information about the varnish-commit mailing list