[master] 0cd6bdd Remove unneeded struct member "len"

Poul-Henning Kamp phk at FreeBSD.org
Mon Jun 6 15:09:07 CEST 2016


commit 0cd6bddab38082f08c62cb837d74ec04d75b85d7
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Jun 6 12:46:40 2016 +0000

    Remove unneeded struct member "len"

diff --git a/lib/libvcc/generate.py b/lib/libvcc/generate.py
index 5da2c95..ed7a2eb 100755
--- a/lib/libvcc/generate.py
+++ b/lib/libvcc/generate.py
@@ -1140,7 +1140,7 @@ def one_var(nm, spec):
 	cnam = i[0].replace(".", "_")
 	ctyp = vcltypes[typ]
 
-	fo.write("\t{ \"%s\", %s, %d,\n" % (nm, typ, len(nm)))
+	fo.write("\t{ \"%s\", %s,\n" % (nm, typ))
 
 	if len(spec[2]) == 0:
 		fo.write('\t    NULL,\t/* No reads allowed */\n')
diff --git a/lib/libvcc/vcc_compile.h b/lib/libvcc/vcc_compile.h
index de1cc7e..ac9cb0a 100644
--- a/lib/libvcc/vcc_compile.h
+++ b/lib/libvcc/vcc_compile.h
@@ -224,7 +224,6 @@ struct vcc {
 struct var {
 	const char		*name;
 	enum var_type		fmt;
-	unsigned		len;
 	const char		*rname;
 	unsigned		r_methods;
 	const char		*lname;



More information about the varnish-commit mailing list