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
ee51ce05
Commit
ee51ce05
authored
Feb 18, 2019
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
integer types consistency
Thank you, @fgsch
parent
0250f758
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cache_ban.c
bin/varnishd/cache/cache_ban.c
+2
-2
No files found.
bin/varnishd/cache/cache_ban.c
View file @
ee51ce05
...
...
@@ -766,8 +766,8 @@ ccf_ban(struct cli *cli, const char * const *av, void *priv)
// XXX move to VTIM?
#define vdur_render(buf, dur) do { \
uint
64_t dec = (uint64
_t)floor(dur); \
uint
64_t frac = (uint64_t)floor((dur) * 1e3) % UINT64_C(1000);
\
uint
max_t dec = (uintmax
_t)floor(dur); \
uint
max_t frac = (uintmax_t)floor((dur) * 1e3) % UINTMAX_C(1000);
\
if (dec == 0 && frac == 0) \
(void) strncpy(buf, "0s", sizeof(buf)); \
else if (dec == 0) \
...
...
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