Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-selector
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-selector
Commits
49ffb731
Unverified
Commit
49ffb731
authored
Apr 28, 2022
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid name-clash with select(2)
parent
c2fe6295
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
associate.c
src/associate.c
+3
-3
No files found.
src/associate.c
View file @
49ffb731
...
...
@@ -29,7 +29,7 @@
#include "vmod_selector.h"
static
unsigned
select
(
VRT_CTX
,
const
struct
match_data
*
const
restrict
match
,
select
_match
(
VRT_CTX
,
const
struct
match_data
*
const
restrict
match
,
const
char
*
const
restrict
obj
,
VCL_ENUM
const
restrict
selects
,
const
char
*
const
restrict
method
,
int
fail
)
{
...
...
@@ -90,7 +90,7 @@ vmod_set_which(VRT_CTX, struct vmod_selector_set *set, VCL_ENUM selects,
}
if
(
match
==
NULL
||
match
->
n
==
0
)
return
(
0
);
return
(
select
(
ctx
,
match
,
set
->
vcl_name
,
selects
,
"which"
,
1
)
+
1
);
return
(
select
_match
(
ctx
,
match
,
set
->
vcl_name
,
selects
,
"which"
,
1
)
+
1
);
}
static
unsigned
...
...
@@ -121,7 +121,7 @@ get_idx(VRT_CTX, VCL_INT n, const struct vmod_selector_set * const restrict set,
match
=
get_existing_match_data
(
ctx
,
set
,
method
,
fail
);
if
(
match
==
NULL
||
match
->
n
==
0
)
return
(
UINT_MAX
);
return
(
select
(
ctx
,
match
,
set
->
vcl_name
,
selects
,
method
,
fail
));
return
(
select
_match
(
ctx
,
match
,
set
->
vcl_name
,
selects
,
method
,
fail
));
}
VCL_STRING
...
...
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