[master] 652f59194 Use the VCL_HTTP type in VRT code
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Mon Oct 14 15:00:06 UTC 2019
commit 652f591945eb9bc3367e44aa6cf8f88554eaea65
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Mon Oct 14 16:46:10 2019 +0200
Use the VCL_HTTP type in VRT code
diff --git a/bin/varnishd/cache/cache_vrt.c b/bin/varnishd/cache/cache_vrt.c
index 2838e9190..d19e85b90 100644
--- a/bin/varnishd/cache/cache_vrt.c
+++ b/bin/varnishd/cache/cache_vrt.c
@@ -128,7 +128,7 @@ VRT_hit_for_pass(VRT_CTX, VCL_DURATION d)
VCL_HTTP
VRT_selecthttp(VRT_CTX, enum gethdr_e where)
{
- struct http *hp;
+ VCL_HTTP hp;
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
switch (where) {
@@ -158,8 +158,8 @@ VRT_selecthttp(VRT_CTX, enum gethdr_e where)
VCL_STRING
VRT_GetHdr(VRT_CTX, const struct gethdr_s *hs)
{
+ VCL_HTTP hp;
const char *p;
- struct http *hp;
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
if (hs->where == HDR_OBJ) {
@@ -543,7 +543,7 @@ VCL_VOID
VRT_SetHdr(VRT_CTX , const struct gethdr_s *hs,
const char *p, ...)
{
- struct http *hp;
+ VCL_HTTP hp;
va_list ap;
const char *b;
More information about the varnish-commit
mailing list