[6.0] 149a536ed Fix a couple of old-style functions

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Tue Oct 17 21:28:11 UTC 2023


commit 149a536ed826bb31aeed72a0ef477b499ec7af82
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 49835eba4..c75d6bf65 100644
--- a/bin/varnishd/storage/stevedore.c
+++ b/bin/varnishd/storage/stevedore.c
@@ -49,7 +49,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 296f01374..b8d22ee72 100644
--- a/lib/libvarnish/vsa.c
+++ b/lib/libvarnish/vsa.c
@@ -183,7 +183,7 @@ static struct suckaddr bogo_ip_vsa;
 const struct suckaddr *bogo_ip = &bogo_ip_vsa;
 
 void
-VSA_Init()
+VSA_Init(void)
 {
 	struct addrinfo hints, *res = NULL;
 


More information about the varnish-commit mailing list