[master] 2aac04085 vtim: Make test driver compile
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Mon Dec 4 10:05:06 UTC 2023
commit 2aac04085cb1b83080dc9e5c04c1006bc4e962e0
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Mon Dec 4 11:02:01 2023 +0100
vtim: Make test driver compile
diff --git a/lib/libvarnish/vtim.c b/lib/libvarnish/vtim.c
index 1ca0d836d..92e5535b2 100644
--- a/lib/libvarnish/vtim.c
+++ b/lib/libvarnish/vtim.c
@@ -504,7 +504,7 @@ tst_delta_check(const char *name, double begin, double end, vtim_dur ref)
}
static void
-tst_delta()
+tst_delta(void)
{
vtim_mono m_begin, m_end;
vtim_real r_begin, r_end;
@@ -527,7 +527,7 @@ tst_delta()
}
static void
-bench()
+bench(void)
{
vtim_mono s, e;
vtim_mono t_m;
@@ -536,6 +536,7 @@ bench()
int i;
char buf[64];
+ t_m = 0;
t_r = 0;
s = VTIM_mono();
for (i=0; i<100000; i++)
@@ -575,7 +576,7 @@ bench()
e - s, i, 1e9 * (e - s) / i, t_i, buf);
}
-void
+static void
parse_check(time_t t, const char *s)
{
vtim_real tt;
@@ -598,6 +599,9 @@ main(int argc, char **argv)
char buf[BUFSIZ];
char buf1[BUFSIZ];
+ (void)argc;
+ (void)argv;
+
AZ(setenv("TZ", "UTC", 1));
assert(sizeof t >= 8);
More information about the varnish-commit
mailing list