[master] 8d0b37d65 Rename the V1L VDP to get in line with oder VDPs

Nils Goroll nils.goroll at uplex.de
Wed Dec 27 09:28:09 UTC 2023


commit 8d0b37d65da9348cab1183e9169e8d377abc52cf
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Dec 27 10:19:29 2023 +0100

    Rename the V1L VDP to get in line with oder VDPs

diff --git a/bin/varnishd/http1/cache_http1.h b/bin/varnishd/http1/cache_http1.h
index d6639f273..dc454bcab 100644
--- a/bin/varnishd/http1/cache_http1.h
+++ b/bin/varnishd/http1/cache_http1.h
@@ -65,4 +65,4 @@ void V1L_Open(struct worker *, struct ws *, int *fd, struct vsl_log *,
 stream_close_t V1L_Flush(const struct worker *w);
 stream_close_t V1L_Close(struct worker *w, uint64_t *cnt);
 size_t V1L_Write(const struct worker *w, const void *ptr, ssize_t len);
-extern const struct vdp * const v1l_vdp;
+extern const struct vdp * const VDP_v1l;
diff --git a/bin/varnishd/http1/cache_http1_deliver.c b/bin/varnishd/http1/cache_http1_deliver.c
index 657ce9e24..d82443367 100644
--- a/bin/varnishd/http1/cache_http1_deliver.c
+++ b/bin/varnishd/http1/cache_http1_deliver.c
@@ -97,7 +97,7 @@ V1D_Deliver(struct req *req, struct boc *boc, int sendbody)
 		}
 		INIT_OBJ(ctx, VRT_CTX_MAGIC);
 		VCL_Req2Ctx(ctx, req);
-		if (VDP_Push(ctx, req->vdc, req->ws, v1l_vdp, NULL)) {
+		if (VDP_Push(ctx, req->vdc, req->ws, VDP_v1l, NULL)) {
 			v1d_error(req, "Failure to push v1d processor");
 			return;
 		}
diff --git a/bin/varnishd/http1/cache_http1_line.c b/bin/varnishd/http1/cache_http1_line.c
index 9c13fb90d..82ae2fe26 100644
--- a/bin/varnishd/http1/cache_http1_line.c
+++ b/bin/varnishd/http1/cache_http1_line.c
@@ -365,7 +365,7 @@ v1l_bytes(struct vdp_ctx *vdc, enum vdp_action act, void **priv,
 	return (0);
 }
 
-const struct vdp * const v1l_vdp = &(struct vdp){
+const struct vdp * const VDP_v1l = &(struct vdp){
 	.name =		"V1B",
 	.bytes =	v1l_bytes,
 };


More information about the varnish-commit mailing list