[master] e8cd406 Fix a couple of K&R style argumentless functions

Poul-Henning Kamp phk at varnish-cache.org
Tue Nov 12 23:58:45 CET 2013


commit e8cd406ba84f2c0729b62eeb799168601c7b175a
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Nov 12 22:58:25 2013 +0000

    Fix a couple of K&R style argumentless functions

diff --git a/bin/varnishd/cache/cache_vcl.c b/bin/varnishd/cache/cache_vcl.c
index b342f43..97e760d 100644
--- a/bin/varnishd/cache/cache_vcl.c
+++ b/bin/varnishd/cache/cache_vcl.c
@@ -455,7 +455,7 @@ static struct cli_proto vcl_cmds[] = {
 };
 
 void
-VCL_Init()
+VCL_Init(void)
 {
 
 	CLI_AddFuncs(vcl_cmds);
diff --git a/bin/varnishd/mgt/mgt_vcc.c b/bin/varnishd/mgt/mgt_vcc.c
index 4df7b0f..d3e81de 100644
--- a/bin/varnishd/mgt/mgt_vcc.c
+++ b/bin/varnishd/mgt/mgt_vcc.c
@@ -431,7 +431,7 @@ mgt_vcc_default(const char *b_arg, const char *f_arg, char *vcl, int C_flag)
 /*--------------------------------------------------------------------*/
 
 int
-mgt_has_vcl()
+mgt_has_vcl(void)
 {
 
 	return (!VTAILQ_EMPTY(&vclhead));



More information about the varnish-commit mailing list