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
15431a54
Unverified
Commit
15431a54
authored
Mar 26, 2021
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vcc_acl: an RBT insert includes a find operation
parent
bbb5db47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
vcc_acl.c
lib/libvcc/vcc_acl.c
+1
-3
No files found.
lib/libvcc/vcc_acl.c
View file @
15431a54
...
...
@@ -95,7 +95,6 @@ vcl_acl_cmp(const struct acl_e *ae1, const struct acl_e *ae2)
}
VRBT_GENERATE_INSERT_COLOR
(
acl_tree
,
acl_e
,
branch
,
static
)
VRBT_GENERATE_FIND
(
acl_tree
,
acl_e
,
branch
,
vcl_acl_cmp
,
static
)
VRBT_GENERATE_INSERT
(
acl_tree
,
acl_e
,
branch
,
vcl_acl_cmp
,
static
)
VRBT_GENERATE_MINMAX
(
acl_tree
,
acl_e
,
branch
,
static
)
VRBT_GENERATE_NEXT
(
acl_tree
,
acl_e
,
branch
,
static
)
...
...
@@ -160,7 +159,7 @@ vcc_acl_insert_entry(struct vcc *tl, struct acl_e *aen)
{
struct
acl_e
*
ae2
;
ae2
=
VRBT_
FIND
(
acl_tree
,
&
tl
->
acl_tree
,
aen
);
ae2
=
VRBT_
INSERT
(
acl_tree
,
&
tl
->
acl_tree
,
aen
);
if
(
ae2
!=
NULL
)
{
if
(
ae2
->
not
!=
aen
->
not
)
{
VSB_cat
(
tl
->
sb
,
"Conflicting ACL entries:
\n
"
);
...
...
@@ -171,7 +170,6 @@ vcc_acl_insert_entry(struct vcc *tl, struct acl_e *aen)
free
(
aen
);
return
;
}
VRBT_INSERT
(
acl_tree
,
&
tl
->
acl_tree
,
aen
);
}
static
void
...
...
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