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
38dd0df7
Commit
38dd0df7
authored
Dec 12, 2022
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor NO-OP polish.
parent
0b8e5ed2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
9 deletions
+12
-9
cache_http.c
bin/varnishd/cache/cache_http.c
+1
-1
vtree.h
include/vtree.h
+4
-4
vcli_proto.c
lib/libvarnish/vcli_proto.c
+1
-2
vjsn.c
lib/libvarnish/vjsn.c
+4
-0
vsa.c
lib/libvarnish/vsa.c
+2
-2
No files found.
bin/varnishd/cache/cache_http.c
View file @
38dd0df7
...
@@ -389,7 +389,7 @@ http_Teardown(struct http *hp)
...
@@ -389,7 +389,7 @@ http_Teardown(struct http *hp)
*/
*/
void
void
HTTP_Dup
(
struct
http
*
to
,
const
struct
http
*
const
fm
)
HTTP_Dup
(
struct
http
*
to
,
const
struct
http
*
fm
)
{
{
assert
(
fm
->
nhd
<=
to
->
shd
);
assert
(
fm
->
nhd
<=
to
->
shd
);
...
...
include/vtree.h
View file @
38dd0df7
...
@@ -533,7 +533,7 @@ name##_VRBT_INSERT_COLOR(struct name *head, \
...
@@ -533,7 +533,7 @@ name##_VRBT_INSERT_COLOR(struct name *head, \
/* \
/* \
* Initially, elm is a leaf. Either its parent was previously \
* Initially, elm is a leaf. Either its parent was previously \
* a leaf, with two black null children, or an interior node \
* a leaf, with two black null children, or an interior node \
* with a black non-null child and a red null child. The
\
* with a black non-null child and a red null child. The
\
* balance criterion "the rank of any leaf is 1" precludes the \
* balance criterion "the rank of any leaf is 1" precludes the \
* possibility of two red null children for the initial parent. \
* possibility of two red null children for the initial parent. \
* So the first loop iteration cannot lead to accessing an \
* So the first loop iteration cannot lead to accessing an \
...
@@ -694,12 +694,12 @@ name##_VRBT_REMOVE_COLOR(struct name *head, \
...
@@ -694,12 +694,12 @@ name##_VRBT_REMOVE_COLOR(struct name *head, \
* par par \
* par par \
* ╱ ╲ ╱ ╲ \
* ╱ ╲ ╱ ╲ \
* ╱ sib elm ╲ \
* ╱ sib elm ╲ \
* ╱ / ╲
elm* \
* ╱ / ╲
elm* \
* elm elm* ╲
╱ ╲ \
* elm elm* ╲
╱ ╲ \
* ╱ ╲ ╲ ╱ ╲ \
* ╱ ╲ ╲ ╱ ╲ \
* ╱ ╲ z ╱ ╲ \
* ╱ ╲ z ╱ ╲ \
* x y x sib \
* x y x sib \
*
╱ ╲ \
*
╱ ╲ \
* ╱ z \
* ╱ z \
* y \
* y \
*/
\
*/
\
...
...
lib/libvarnish/vcli_proto.c
View file @
38dd0df7
...
@@ -88,8 +88,7 @@ VCLI_WriteResult(int fd, unsigned status, const char *result)
...
@@ -88,8 +88,7 @@ VCLI_WriteResult(int fd, unsigned status, const char *result)
len
=
strlen
(
result
);
len
=
strlen
(
result
);
i
=
snprintf
(
res
,
sizeof
res
,
i
=
snprintf
(
res
,
sizeof
res
,
"%-3d %-8zd
\n
"
,
status
,
len
);
"%-3d %-8zd
\n
"
,
status
,
len
);
assert
(
i
==
CLI_LINE0_LEN
);
assert
(
i
==
CLI_LINE0_LEN
);
assert
(
strtoul
(
res
+
3
,
NULL
,
10
)
==
len
);
assert
(
strtoul
(
res
+
3
,
NULL
,
10
)
==
len
);
...
...
lib/libvarnish/vjsn.c
View file @
38dd0df7
...
@@ -356,6 +356,10 @@ vjsn_number(struct vjsn *js)
...
@@ -356,6 +356,10 @@ vjsn_number(struct vjsn *js)
while
(
*
js
->
ptr
>=
'0'
&&
*
js
->
ptr
<=
'9'
)
while
(
*
js
->
ptr
>=
'0'
&&
*
js
->
ptr
<=
'9'
)
js
->
ptr
++
;
js
->
ptr
++
;
}
}
/*
* The terminating NUL is supplied by the caller, once they
* have decided if they like what occupies that spot.
*/
return
(
jsv
);
return
(
jsv
);
}
}
...
...
lib/libvarnish/vsa.c
View file @
38dd0df7
...
@@ -255,7 +255,8 @@ VSA_Malloc(const void *s, unsigned sal)
...
@@ -255,7 +255,8 @@ VSA_Malloc(const void *s, unsigned sal)
return
(
VSA_Build
(
NULL
,
s
,
sal
));
return
(
VSA_Build
(
NULL
,
s
,
sal
));
}
}
/* 'd' SHALL point to vsa_suckaddr_len aligned bytes of storage
/*
* 'd' SHALL point to vsa_suckaddr_len aligned bytes of storage
*
*
* fam: address family
* fam: address family
* a / al : address and length
* a / al : address and length
...
@@ -466,4 +467,3 @@ VSA_free(const struct suckaddr **vsap)
...
@@ -466,4 +467,3 @@ VSA_free(const struct suckaddr **vsap)
TAKE_OBJ_NOTNULL
(
vsa
,
vsap
,
SUCKADDR_MAGIC
);
TAKE_OBJ_NOTNULL
(
vsa
,
vsap
,
SUCKADDR_MAGIC
);
free
(
TRUST_ME
(
vsa
));
free
(
TRUST_ME
(
vsa
));
}
}
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