Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
2aac0408
Commit
2aac0408
authored
Dec 04, 2023
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vtim: Make test driver compile
parent
ddeb2421
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
vtim.c
lib/libvarnish/vtim.c
+7
-3
No files found.
lib/libvarnish/vtim.c
View file @
2aac0408
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment