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
64f7181b
Unverified
Commit
64f7181b
authored
Nov 08, 2021
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish min usage for SunCC
Fixes: left operand must be modifiable lvalue: op "="
parent
ce331c3f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
cache_http2_send.c
bin/varnishd/http2/cache_http2_send.c
+1
-1
vcc_acl.c
lib/libvcc/vcc_acl.c
+1
-1
vmod_directors_shard_cfg.c
vmod/vmod_directors_shard_cfg.c
+2
-2
No files found.
bin/varnishd/http2/cache_http2_send.c
View file @
64f7181b
...
...
@@ -218,7 +218,7 @@ h2_win_limit(const struct h2_req *r2, const struct h2_sess *h2)
CHECK_OBJ_NOTNULL
(
h2
->
req0
,
H2_REQ_MAGIC
);
Lck_AssertHeld
(
&
h2
->
sess
->
mtx
);
return
(
vmin
(
r2
->
t_window
,
h2
->
req0
->
t_window
));
return
(
vmin
_t
(
int64_t
,
r2
->
t_window
,
h2
->
req0
->
t_window
));
}
static
void
...
...
lib/libvcc/vcc_acl.c
View file @
64f7181b
...
...
@@ -105,7 +105,7 @@ vcl_acl_cmp(const struct acl_e *ae1, const struct acl_e *ae2)
p1
=
ae1
->
data
;
p2
=
ae2
->
data
;
m
=
vmin
(
ae1
->
mask
,
ae2
->
mask
);
m
=
vmin
_t
(
unsigned
,
ae1
->
mask
,
ae2
->
mask
);
for
(;
m
>=
8
;
m
-=
8
)
{
CMP
(
*
p1
,
*
p2
);
p1
++
;
...
...
vmod/vmod_directors_shard_cfg.c
View file @
64f7181b
...
...
@@ -282,7 +282,7 @@ shardcfg_hashcircle(struct sharddir *shardd)
rmax
=
(
UINT32_MAX
-
1
)
/
shardd
->
n_backend
;
for
(
b
=
backends
;
b
<
backends
+
shardd
->
n_backend
;
b
++
)
{
CHECK_OBJ_NOTNULL
(
b
->
backend
,
DIRECTOR_MAGIC
);
n_points
+=
vmin
(
b
->
replicas
,
rmax
);
n_points
+=
vmin
_t
(
uint32_t
,
b
->
replicas
,
rmax
);
}
assert
(
n_points
<
UINT32_MAX
);
...
...
@@ -298,7 +298,7 @@ shardcfg_hashcircle(struct sharddir *shardd)
AN
(
ident
);
assert
(
ident
[
0
]
!=
'\0'
);
r
=
vmin
(
b
->
replicas
,
rmax
);
r
=
vmin
_t
(
uint32_t
,
b
->
replicas
,
rmax
);
for
(
j
=
0
;
j
<
r
;
j
++
)
{
assert
(
snprintf
(
s
,
len
,
"%d"
,
j
)
<
len
);
...
...
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