[master] f1d450cfa Constify

Nils Goroll nils.goroll at uplex.de
Wed Oct 12 10:46:05 UTC 2022


commit f1d450cfa57862e080c1f54ec6a3a521bbd192be
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Oct 12 12:44:45 2022 +0200

    Constify
    
    found by flexelint

diff --git a/bin/varnishd/cache/cache_varnishd.h b/bin/varnishd/cache/cache_varnishd.h
index b40e5b43f..b90affc6a 100644
--- a/bin/varnishd/cache/cache_varnishd.h
+++ b/bin/varnishd/cache/cache_varnishd.h
@@ -462,7 +462,7 @@ void VCP_Panic(struct vsb *, struct conn_pool *);
 
 /* cache_vary.c */
 int VRY_Create(struct busyobj *bo, struct vsb **psb);
-int VRY_Match(struct req *, const uint8_t *vary);
+int VRY_Match(const struct req *, const uint8_t *vary);
 void VRY_Prep(struct req *);
 void VRY_Clear(struct req *);
 enum vry_finish_flag { KEEP, DISCARD };
diff --git a/bin/varnishd/cache/cache_vary.c b/bin/varnishd/cache/cache_vary.c
index e650c653e..101eca231 100644
--- a/bin/varnishd/cache/cache_vary.c
+++ b/bin/varnishd/cache/cache_vary.c
@@ -286,7 +286,7 @@ VRY_Finish(struct req *req, enum vry_finish_flag flg)
  */
 
 int
-VRY_Match(struct req *req, const uint8_t *vary)
+VRY_Match(const struct req *req, const uint8_t *vary)
 {
 	uint8_t *vsp = req->vary_b;
 	const char *h, *e;


More information about the varnish-commit mailing list