[master] ac0b20c48 Fix a couple of old-style functions

Poul-Henning Kamp phk at FreeBSD.org
Wed Mar 24 09:03:07 UTC 2021


commit ac0b20c4821990c4bfdf83fa1d53cc94f81ca922
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Mar 23 23:17:09 2021 +0000

    Fix a couple of old-style functions

diff --git a/bin/varnishd/storage/stevedore.c b/bin/varnishd/storage/stevedore.c
index 93d3f78d4..9edf85774 100644
--- a/bin/varnishd/storage/stevedore.c
+++ b/bin/varnishd/storage/stevedore.c
@@ -50,7 +50,7 @@ static pthread_mutex_t stv_mtx;
  */
 
 const struct stevedore *
-STV_next()
+STV_next(void)
 {
 	static struct stevedore *stv;
 	struct stevedore *r;
diff --git a/lib/libvarnish/vsa.c b/lib/libvarnish/vsa.c
index 57287b60d..66213be76 100644
--- a/lib/libvarnish/vsa.c
+++ b/lib/libvarnish/vsa.c
@@ -188,7 +188,7 @@ static struct suckaddr bogo_ip6_vsa;
 const struct suckaddr *bogo_ip6 = &bogo_ip6_vsa;
 
 void
-VSA_Init()
+VSA_Init(void)
 {
 	AN(VSA_BuildFAP(&bogo_ip_vsa, PF_INET, NULL, 0, NULL, 0));
 	AN(VSA_BuildFAP(&bogo_ip6_vsa, PF_INET6, NULL, 0, NULL, 0));


More information about the varnish-commit mailing list