[master] 9ab3376 More version numbers are unsigned

Federico G. Schwindt fgsch at lodoss.net
Mon Feb 13 13:02:05 CET 2017


commit 9ab3376e21e8f628beb93530316eb9d5e8d39203
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Mon Feb 13 11:52:53 2017 +0000

    More version numbers are unsigned

diff --git a/bin/varnishd/cache/cache_vrt_vmod.c b/bin/varnishd/cache/cache_vrt_vmod.c
index 05bd49e..009da54 100644
--- a/bin/varnishd/cache/cache_vrt_vmod.c
+++ b/bin/varnishd/cache/cache_vrt_vmod.c
@@ -62,8 +62,8 @@ struct vmod {
 	const void		*funcs;
 	int			funclen;
 	const char		*abi;
-	int			vrt_major;
-	int			vrt_minor;
+	unsigned		vrt_major;
+	unsigned		vrt_minor;
 };
 
 static VTAILQ_HEAD(,vmod)	vmods = VTAILQ_HEAD_INITIALIZER(vmods);
@@ -237,7 +237,7 @@ VMOD_Panic(struct vsb *vsb)
 	VSB_printf(vsb, "vmods = {\n");
 	VSB_indent(vsb, 2);
 	VTAILQ_FOREACH(v, &vmods, list)
-		VSB_printf(vsb, "%s = {%s, %d.%d},\n",
+		VSB_printf(vsb, "%s = {%s, %u.%u},\n",
 		    v->nm, v->abi, v->vrt_major, v->vrt_minor);
 	VSB_indent(vsb, -2);
 	VSB_printf(vsb, "},\n");



More information about the varnish-commit mailing list