Skip to content

Commit

Permalink
Rename the V1L VDP to get in line with oder VDPs
Browse files Browse the repository at this point in the history
  • Loading branch information
nigoroll committed Dec 27, 2023
1 parent b5d8e57 commit 8d0b37d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/varnishd/http1/cache_http1.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion bin/varnishd/http1/cache_http1_deliver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion bin/varnishd/http1/cache_http1_line.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

0 comments on commit 8d0b37d

Please sign in to comment.