[master] d3c780c5f Flexelinting: int/unsigned consistency

Poul-Henning Kamp phk at FreeBSD.org
Mon Apr 29 09:28:08 UTC 2019


commit d3c780c5ff5cb4366e414179827db32155eb0ca2
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Apr 29 07:23:20 2019 +0000

    Flexelinting: int/unsigned consistency

diff --git a/bin/varnishd/cache/cache_panic.c b/bin/varnishd/cache/cache_panic.c
index 9289a60ba..a0641897b 100644
--- a/bin/varnishd/cache/cache_panic.c
+++ b/bin/varnishd/cache/cache_panic.c
@@ -520,7 +520,7 @@ pan_req(struct vsb *vsb, const struct req *req)
 		    "err_code = %d, err_reason = %s,\n", req->err_code,
 		    req->err_reason ? req->err_reason : "(null)");
 
-	VSB_printf(vsb, "restarts = %d, esi_level = %d,\n",
+	VSB_printf(vsb, "restarts = %d, esi_level = %u,\n",
 	    req->restarts, req->esi_level);
 
 	if (req->sp != NULL)
diff --git a/lib/libvcc/generate.py b/lib/libvcc/generate.py
index 8f2db0651..d6b02a0e9 100755
--- a/lib/libvcc/generate.py
+++ b/lib/libvcc/generate.py
@@ -651,14 +651,14 @@ struct VCL_conf {
 	unsigned		syntax;
 	VCL_BACKEND		*default_director;
 	VCL_PROBE		default_probe;
-	unsigned		nref;
+	int			nref;
 	const struct vrt_ref	*ref;
 
-	unsigned		nsrc;
+	int			nsrc;
 	const char		**srcname;
 	const char		**srcbody;
 
-	unsigned		nvmod;
+	int			nvmod;
 
 	vcl_event_f		*event_vcl;
 """)


More information about the varnish-commit mailing list