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
9963084b
Commit
9963084b
authored
Aug 30, 2021
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vre: Constify VRE_Capture
Spotted by Flexelint.
parent
d3a6a607
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
vre.h
include/vre.h
+3
-2
vre.c
lib/libvarnish/vre.c
+1
-1
No files found.
include/vre.h
View file @
9963084b
...
...
@@ -60,8 +60,9 @@ vre_t *VRE_export(const vre_t *, size_t *);
int
VRE_error
(
struct
vsb
*
,
int
err
);
int
VRE_match
(
const
vre_t
*
code
,
const
char
*
subject
,
size_t
length
,
int
options
,
const
volatile
struct
vre_limits
*
lim
);
int
VRE_capture
(
vre_t
*
code
,
const
char
*
subject
,
size_t
length
,
int
options
,
txt
*
groups
,
size_t
count
,
const
volatile
struct
vre_limits
*
lim
);
int
VRE_capture
(
const
vre_t
*
code
,
const
char
*
subject
,
size_t
length
,
int
options
,
txt
*
groups
,
size_t
count
,
const
volatile
struct
vre_limits
*
lim
);
int
VRE_sub
(
const
vre_t
*
code
,
const
char
*
subject
,
const
char
*
replacement
,
struct
vsb
*
vsb
,
const
volatile
struct
vre_limits
*
lim
,
int
all
);
void
VRE_free
(
vre_t
**
);
...
...
lib/libvarnish/vre.c
View file @
9963084b
...
...
@@ -244,7 +244,7 @@ VRE_match(const vre_t *code, const char *subject, size_t length,
}
int
VRE_capture
(
vre_t
*
code
,
const
char
*
subject
,
size_t
length
,
int
options
,
VRE_capture
(
const
vre_t
*
code
,
const
char
*
subject
,
size_t
length
,
int
options
,
txt
*
groups
,
size_t
count
,
const
volatile
struct
vre_limits
*
lim
)
{
int
i
;
...
...
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