[master] a283499 Fix destroy arguments

Poul-Henning Kamp phk at FreeBSD.org
Sun May 28 13:23:05 CEST 2017


commit a283499221093d6e21a7b5ae52eb2ee3e6796a61
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Sun May 28 11:00:12 2017 +0000

    Fix destroy arguments

diff --git a/lib/libvcc/vsctool.py b/lib/libvcc/vsctool.py
index bc7abfb..08e248e 100644
--- a/lib/libvcc/vsctool.py
+++ b/lib/libvcc/vsctool.py
@@ -196,11 +196,11 @@ class vscset(object):
 		fo.write("\n")
 		fo.write("void\n")
 		fo.write("VSC_" + self.name + "_Destroy")
-		fo.write("(" + self.struct + "**pp)\n")
+		fo.write("(" + self.struct + " **pp)\n")
 		fo.write("{\n")
 		fo.write("\n")
 		fo.write("\tAN(pp);\n")
-		fo.write('\tVSC_Destroy("%s", *pp);\n' % self.name)
+		fo.write('\tVSC_Destroy(vsc_%s_name, *pp);\n' % self.name)
 		fo.write("\t*pp = NULL;\n")
 		fo.write("}\n")
 



More information about the varnish-commit mailing list