[master] 957dee5c7 Dont prefix function pointers with '*'

Poul-Henning Kamp phk at FreeBSD.org
Tue Aug 6 09:15:11 UTC 2019


commit 957dee5c7709a586d566cbb22c253d03829d6636
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Aug 6 08:05:00 2019 +0000

    Dont prefix function pointers with '*'

diff --git a/lib/libvcc/vmodtool.py b/lib/libvcc/vmodtool.py
index 79cff3ee8..fea8a955f 100755
--- a/lib/libvcc/vmodtool.py
+++ b/lib/libvcc/vmodtool.py
@@ -577,7 +577,7 @@ class Stanza(object):
             fmt_cstruct(
                 fo,
                 '.' + proto.cname() + ' =',
-                '*' + self.vcc.sympfx + proto.cname() + ','
+                self.vcc.sympfx + proto.cname() + ','
             )
 
     def cstruct(self, unused_fo, unused_define):
@@ -703,7 +703,7 @@ class EventStanza(Stanza):
         else:
             fmt_cstruct(fo,
                         "._event =",
-                        '*' + self.vcc.sympfx + self.event_func + ',')
+                        self.vcc.sympfx + self.event_func + ',')
 
     def json(self, jl):
         jl.append(["$EVENT", "%s._event" % self.vcc.csn])


More information about the varnish-commit mailing list