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
d7a9386e
Commit
d7a9386e
authored
Dec 05, 2023
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Yet an attempt to fix vtim_iter on 32 bit
parent
7bc5cf68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
vtim.c
lib/libvarnish/vtim.c
+3
-1
No files found.
lib/libvarnish/vtim.c
View file @
d7a9386e
...
...
@@ -592,6 +592,7 @@ int
main
(
int
argc
,
char
**
argv
)
{
time_t
t
;
intmax_t
iter
;
struct
tm
tm
;
char
buf
[
BUFSIZ
];
char
buf1
[
BUFSIZ
];
...
...
@@ -605,7 +606,8 @@ main(int argc, char **argv)
bench
();
/* Brute force test against libc version */
for
(
t
=
TTEST_MIN
;
t
<
TTEST_MAX
;
t
+=
3599
)
{
for
(
iter
=
TTEST_MIN
;
iter
<
TTEST_MAX
;
iter
+=
3599
)
{
t
=
(
time_t
)
iter
;
gmtime_r
(
&
t
,
&
tm
);
strftime
(
buf1
,
sizeof
buf1
,
"%a, %d %b %Y %T GMT"
,
&
tm
);
VTIM_format
(
t
,
buf
);
...
...
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