Mailing List Archive

[master] 62916e0ec Flexelinting
commit 62916e0eca246f3850c44e1bd50920c1f03d0f0e
Author: Poul-Henning Kamp <phk@FreeBSD.org>
Date: Wed Nov 30 20:59:03 2022 +0000

Flexelinting

diff --git a/bin/varnishd/cache/cache.h b/bin/varnishd/cache/cache.h
index c59564737..0a3f9e092 100644
--- a/bin/varnishd/cache/cache.h
+++ b/bin/varnishd/cache/cache.h
@@ -880,7 +880,7 @@ unsigned RFC2616_Req_Gzip(const struct http *);
int RFC2616_Do_Cond(const struct req *sp);
void RFC2616_Weaken_Etag(struct http *hp);
void RFC2616_Vary_AE(struct http *hp);
-const char * RFC2616_Strong_LM(struct http *hp, struct worker *wrk,
+const char * RFC2616_Strong_LM(const struct http *hp, struct worker *wrk,
struct objcore *oc);

/*
diff --git a/bin/varnishd/cache/cache_rfc2616.c b/bin/varnishd/cache/cache_rfc2616.c
index e45ad12fd..90d588e7b 100644
--- a/bin/varnishd/cache/cache_rfc2616.c
+++ b/bin/varnishd/cache/cache_rfc2616.c
@@ -360,7 +360,8 @@ RFC2616_Vary_AE(struct http *hp)
/*--------------------------------------------------------------------*/

const char *
-RFC2616_Strong_LM(struct http *hp, struct worker *wrk, struct objcore *oc)
+RFC2616_Strong_LM(const struct http *hp, struct worker *wrk,
+ struct objcore *oc)
{
const char *p = NULL, *e = NULL;
vtim_real lm, d;
@@ -370,8 +371,8 @@ RFC2616_Strong_LM(struct http *hp, struct worker *wrk, struct objcore *oc)
CHECK_OBJ_ORNULL(hp, HTTP_MAGIC);

if (hp != NULL) {
- http_GetHdr(hp, H_Last_Modified, &p);
- http_GetHdr(hp, H_Date, &e);
+ (void)http_GetHdr(hp, H_Last_Modified, &p);
+ (void)http_GetHdr(hp, H_Date, &e);
} else if (wrk != NULL && oc != NULL) {
p = HTTP_GetHdrPack(wrk, oc, H_Last_Modified);
e = HTTP_GetHdrPack(wrk, oc, H_Date);
_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit