[3.0] af56dab Fix up function declarations to fix compile errors on clang

Martin Blix Grydeland martin at varnish-software.com
Fri May 16 11:21:50 CEST 2014


commit af56daba68c028ac59550eb5314287f2188a2137
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Fri May 16 11:20:58 2014 +0200

    Fix up function declarations to fix compile errors on clang

diff --git a/bin/varnishd/cache_backend.h b/bin/varnishd/cache_backend.h
index b16d51e..a3041d0 100644
--- a/bin/varnishd/cache_backend.h
+++ b/bin/varnishd/cache_backend.h
@@ -153,9 +153,10 @@ void VBE_DropRefVcl(struct backend *);
 void VBE_DropRefLocked(struct backend *b);
 
 /* cache_backend_poll.c */
-void VBP_Insert(struct backend *b, struct vrt_backend_probe const *p, const char *hosthdr);
-void VBP_Remove(struct backend *b, struct vrt_backend_probe const *p);
-void VBP_Use(const struct backend *b, const struct vrt_backend_probe const *p);
+void VBP_Insert(struct backend *b, const struct vrt_backend_probe *p,
+    const char *hosthdr);
+void VBP_Remove(struct backend *b, const struct vrt_backend_probe *p);
+void VBP_Use(const struct backend *b, const struct vrt_backend_probe *p);
 void VBP_Summary(struct cli *cli, const struct vbp_target *vt);
 
 /* Init functions for directors */
diff --git a/bin/varnishd/cache_backend_poll.c b/bin/varnishd/cache_backend_poll.c
index ce00a67..4995a57 100644
--- a/bin/varnishd/cache_backend_poll.c
+++ b/bin/varnishd/cache_backend_poll.c
@@ -475,7 +475,8 @@ vbp_new_vcl(const struct vrt_backend_probe *p, const char *hosthdr)
  */
 
 void
-VBP_Insert(struct backend *b, const struct vrt_backend_probe *p, const char *hosthdr)
+VBP_Insert(struct backend *b, const struct vrt_backend_probe *p,
+    const char *hosthdr)
 {
 	struct vbp_target *vt;
 	struct vbp_vcl *vcl;
@@ -542,7 +543,7 @@ VBP_Use(const struct backend *b, const struct vrt_backend_probe *p)
 }
 
 void
-VBP_Remove(struct backend *b, struct vrt_backend_probe const *p)
+VBP_Remove(struct backend *b, const struct vrt_backend_probe *p)
 {
 	struct vbp_target *vt;
 	struct vbp_vcl *vcl;



More information about the varnish-commit mailing list