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
b917fbe2
Commit
b917fbe2
authored
Nov 15, 2019
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vcc: Constify struct token pointers
Refs #3134
parent
48758ee5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
vcc_backend.c
lib/libvcc/vcc_backend.c
+11
-11
vcc_backend_util.c
lib/libvcc/vcc_backend_util.c
+1
-1
vcc_compile.h
lib/libvcc/vcc_compile.h
+1
-1
No files found.
lib/libvcc/vcc_backend.c
View file @
b917fbe2
...
...
@@ -131,8 +131,8 @@ Emit_UDS_Path(struct vcc *tl, struct vsb *vsb1,
*/
static
void
vcc_Redef
(
struct
vcc
*
tl
,
const
char
*
redef
,
struct
token
**
t_did
,
struct
token
*
t_field
)
vcc_Redef
(
struct
vcc
*
tl
,
const
char
*
redef
,
const
struct
token
**
t_did
,
const
struct
token
*
t_field
)
{
if
(
*
t_did
!=
NULL
)
{
VSB_printf
(
tl
->
sb
,
"%s redefinition at:
\n
"
,
redef
);
...
...
@@ -152,8 +152,8 @@ static void
vcc_ParseProbeSpec
(
struct
vcc
*
tl
,
const
struct
symbol
*
sym
,
char
**
namep
)
{
struct
fld_spec
*
fs
;
struct
token
*
t_field
;
struct
token
*
t_did
=
NULL
,
*
t_window
=
NULL
,
*
t_threshold
=
NULL
;
const
struct
token
*
t_field
;
const
struct
token
*
t_did
=
NULL
,
*
t_window
=
NULL
,
*
t_threshold
=
NULL
;
struct
token
*
t_initial
=
NULL
;
unsigned
window
,
threshold
,
initial
,
status
;
char
buf
[
32
];
...
...
@@ -332,14 +332,14 @@ vcc_ParseProbe(struct vcc *tl)
static
void
vcc_ParseHostDef
(
struct
vcc
*
tl
,
const
struct
token
*
t_be
,
const
char
*
vgcname
)
{
struct
token
*
t_field
;
struct
token
*
t_val
;
struct
token
*
t_host
=
NULL
;
struct
token
*
t_port
=
NULL
;
struct
token
*
t_path
=
NULL
;
struct
token
*
t_hosthdr
=
NULL
;
const
struct
token
*
t_field
;
const
struct
token
*
t_val
;
const
struct
token
*
t_host
=
NULL
;
const
struct
token
*
t_port
=
NULL
;
const
struct
token
*
t_path
=
NULL
;
const
struct
token
*
t_hosthdr
=
NULL
;
const
struct
token
*
t_did
=
NULL
;
struct
symbol
*
pb
;
struct
token
*
t_did
=
NULL
;
struct
fld_spec
*
fs
;
struct
inifin
*
ifp
;
struct
vsb
*
vsb1
;
...
...
lib/libvcc/vcc_backend_util.c
View file @
b917fbe2
...
...
@@ -88,7 +88,7 @@ vcc_FldSpec(struct vcc *tl, const char *first, ...)
}
void
vcc_IsField
(
struct
vcc
*
tl
,
struct
token
**
t
,
struct
fld_spec
*
fs
)
vcc_IsField
(
struct
vcc
*
tl
,
const
struct
token
**
t
,
struct
fld_spec
*
fs
)
{
struct
token
*
t_field
;
...
...
lib/libvcc/vcc_compile.h
View file @
b917fbe2
...
...
@@ -307,7 +307,7 @@ void vcc_Backend_Init(struct vcc *tl);
void
vcc_ParseProbe
(
struct
vcc
*
tl
);
void
vcc_ParseBackend
(
struct
vcc
*
tl
);
struct
fld_spec
*
vcc_FldSpec
(
struct
vcc
*
tl
,
const
char
*
first
,
...);
void
vcc_IsField
(
struct
vcc
*
tl
,
struct
token
**
t
,
struct
fld_spec
*
fs
);
void
vcc_IsField
(
struct
vcc
*
tl
,
const
struct
token
**
t
,
struct
fld_spec
*
fs
);
void
vcc_FieldsOk
(
struct
vcc
*
tl
,
const
struct
fld_spec
*
fs
);
/* vcc_compile.c */
...
...
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