[master] 8a23f4651 Constify

Nils Goroll nils.goroll at uplex.de
Tue Feb 18 09:53:10 UTC 2025


commit 8a23f46513acee9e3278d9da3d06c23f8abb1ab1
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Tue Feb 18 10:52:20 2025 +0100

    Constify

diff --git a/bin/varnishd/cache/cache_req.c b/bin/varnishd/cache/cache_req.c
index dd441b33e..2fa6ecd77 100644
--- a/bin/varnishd/cache/cache_req.c
+++ b/bin/varnishd/cache/cache_req.c
@@ -123,7 +123,7 @@ Req_LogStart(const struct worker *wrk, struct req *req)
  */
 
 struct req *
-Req_New(struct sess *sp, struct req *preq)
+Req_New(struct sess *sp, const struct req *preq)
 {
 	struct pool *pp;
 	struct req *req;
diff --git a/bin/varnishd/cache/cache_varnishd.h b/bin/varnishd/cache/cache_varnishd.h
index e3011d8ca..c4dc02a48 100644
--- a/bin/varnishd/cache/cache_varnishd.h
+++ b/bin/varnishd/cache/cache_varnishd.h
@@ -411,7 +411,7 @@ void pan_pool(struct vsb *);
 int VRG_CheckBo(struct busyobj *);
 
 /* cache_req.c */
-struct req *Req_New(struct sess *, struct req *);
+struct req *Req_New(struct sess *, const struct req *);
 void Req_Release(struct req *);
 void Req_Rollback(VRT_CTX);
 void Req_Cleanup(struct sess *sp, struct worker *wrk, struct req *req);


More information about the varnish-commit mailing list