Mailing List Archive

[master] 772c127f6 Constify
commit 772c127f6ef100664b7c95ece3789b9c3e92a797
Author: Poul-Henning Kamp <phk@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 *);
_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit