[master] df178b49b Flexelinting

Poul-Henning Kamp phk at FreeBSD.org
Mon Apr 29 21:31:12 UTC 2019


commit df178b49b373fdf89dc766fddf44e5759de13eaa
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Apr 29 21:24:58 2019 +0000

    Flexelinting

diff --git a/lib/libvmod_vtc/vmod_vtc.c b/lib/libvmod_vtc/vmod_vtc.c
index ceaf76ac7..c67b115eb 100644
--- a/lib/libvmod_vtc/vmod_vtc.c
+++ b/lib/libvmod_vtc/vmod_vtc.c
@@ -214,10 +214,9 @@ vmod_workspace_dump(VRT_CTX, VCL_ENUM which, VCL_ENUM where,
     VCL_BYTES off, VCL_BYTES len)
 {
 	struct ws *ws;
-	const size_t maxlen = 1024;
+	VCL_BYTES l, maxlen = 1024;
 	unsigned char buf[maxlen];
 	const char *p;
-	unsigned l;
 
 	CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
 
@@ -227,7 +226,8 @@ vmod_workspace_dump(VRT_CTX, VCL_ENUM which, VCL_ENUM where,
 	WS_Assert(ws);
 
 	if (len > maxlen) {
-		VRT_fail(ctx, "workspace_dump: max length is %zd", maxlen);
+		VRT_fail(ctx, "workspace_dump: max length is %jd",
+		    (intmax_t)maxlen);
 		return (NULL);
 	}
 


More information about the varnish-commit mailing list