[master] 7aef7a7 Fix the typedef for VCL_HEADER

Poul-Henning Kamp phk at varnish-cache.org
Wed Nov 13 11:39:17 CET 2013


commit 7aef7a73d49833fa27091a357b01980b0225f0a5
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Nov 13 10:38:38 2013 +0000

    Fix the typedef for VCL_HEADER

diff --git a/include/vrt.h b/include/vrt.h
index cab38de..fa512dd 100644
--- a/include/vrt.h
+++ b/include/vrt.h
@@ -54,7 +54,7 @@ typedef unsigned			VCL_BOOL;
 typedef double				VCL_BYTES;
 typedef double				VCL_DURATION;
 typedef const char *			VCL_ENUM;
-typedef const char *			VCL_HEADER;
+typedef const struct gethdr_s *		VCL_HEADER;
 typedef long				VCL_INT;
 typedef const struct suckaddr *		VCL_IP;
 typedef double				VCL_REAL;
diff --git a/lib/libvcc/vmodtool.py b/lib/libvcc/vmodtool.py
index 6d62bce..3190185 100755
--- a/lib/libvcc/vmodtool.py
+++ b/lib/libvcc/vmodtool.py
@@ -50,7 +50,7 @@ ctypes = {
 	'BOOL':		"VCL_BOOL",
 	'DURATION':	"VCL_DURATION",
 	'ENUM':		"VCL_ENUM",
-	'HEADER':	"const struct gethdr_s *",
+	'HEADER':	"VCL_HEADER",
 	'INT':		"VCL_INT",
 	'IP':		"VCL_IP",
 	'PRIV_CALL':	"struct vmod_priv *",
diff --git a/lib/libvmod_std/vmod_std.c b/lib/libvmod_std/vmod_std.c
index 8926d3d..c865494 100644
--- a/lib/libvmod_std/vmod_std.c
+++ b/lib/libvmod_std/vmod_std.c
@@ -169,7 +169,7 @@ vmod_syslog(const struct vrt_ctx *ctx, VCL_INT fac, const char *fmt, ...)
 }
 
 VCL_VOID __match_proto__(td_std_collect)
-vmod_collect(const struct vrt_ctx *ctx, const struct gethdr_s *hdr)
+vmod_collect(const struct vrt_ctx *ctx, VCL_HEADER hdr)
 {
 
 	CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);



More information about the varnish-commit mailing list