[master] 772c127f6 Constify

Poul-Henning Kamp phk at FreeBSD.org
Mon Dec 5 15:41:07 UTC 2022


commit 772c127f6ef100664b7c95ece3789b9c3e92a797
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Dec 5 14:53:48 2022 +0000

    Constify

diff --git a/bin/varnishd/cache/cache_req.c b/bin/varnishd/cache/cache_req.c
index 46b183140..113f3a987 100644
--- a/bin/varnishd/cache/cache_req.c
+++ b/bin/varnishd/cache/cache_req.c
@@ -100,7 +100,7 @@ Req_LogHit(struct worker *wrk, struct req *req, struct objcore *oc,
 }
 
 const char *
-Req_LogStart(struct worker *wrk, struct req *req)
+Req_LogStart(const struct worker *wrk, struct req *req)
 {
 	const char *ci, *cp, *endpname;
 
diff --git a/bin/varnishd/cache/cache_varnishd.h b/bin/varnishd/cache/cache_varnishd.h
index cf397dd81..2e335b97c 100644
--- a/bin/varnishd/cache/cache_varnishd.h
+++ b/bin/varnishd/cache/cache_varnishd.h
@@ -404,7 +404,7 @@ void Req_Cleanup(struct sess *sp, struct worker *wrk, struct req *req);
 void Req_Fail(struct req *req, stream_close_t reason);
 void Req_AcctLogCharge(struct VSC_main_wrk *, struct req *);
 void Req_LogHit(struct worker *, struct req *, struct objcore *, intmax_t);
-const char *Req_LogStart(struct worker *, struct req *);
+const char *Req_LogStart(const struct worker *, struct req *);
 
 /* cache_req_body.c */
 int VRB_Ignore(struct req *);


More information about the varnish-commit mailing list