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
a63415b4
Commit
a63415b4
authored
Sep 30, 2019
by
Nils Goroll
Committed by
Dridi Boukelmoune
Dec 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid 3 duplicated lines (very minor)
Ref #3067
parent
c0be6d84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
vcc_backend.c
lib/libvcc/vcc_backend.c
+6
-8
No files found.
lib/libvcc/vcc_backend.c
View file @
a63415b4
...
@@ -321,10 +321,12 @@ vcc_ParseHostDef(struct vcc *tl, const struct token *t_be, const char *vgcname)
...
@@ -321,10 +321,12 @@ vcc_ParseHostDef(struct vcc *tl, const struct token *t_be, const char *vgcname)
"?proxy_header"
,
"?proxy_header"
,
NULL
);
NULL
);
if
(
tl
->
t
->
tok
==
ID
&&
(
vcc_IdIs
(
tl
->
t
,
"none"
)
||
vcc_IdIs
(
tl
->
t
,
"None"
)))
{
vsb
=
VSB_new_auto
();
vsb
=
VSB_new_auto
();
AN
(
vsb
);
AN
(
vsb
);
tl
->
fb
=
vsb
;
tl
->
fb
=
vsb
;
if
(
tl
->
t
->
tok
==
ID
&&
(
vcc_IdIs
(
tl
->
t
,
"none"
)
||
vcc_IdIs
(
tl
->
t
,
"None"
)))
{
Fb
(
tl
,
0
,
"
\n\t
%s = (NULL);
\n
"
,
vgcname
);
Fb
(
tl
,
0
,
"
\n\t
%s = (NULL);
\n
"
,
vgcname
);
vcc_NextToken
(
tl
);
vcc_NextToken
(
tl
);
SkipToken
(
tl
,
';'
);
SkipToken
(
tl
,
';'
);
...
@@ -333,10 +335,6 @@ vcc_ParseHostDef(struct vcc *tl, const struct token *t_be, const char *vgcname)
...
@@ -333,10 +335,6 @@ vcc_ParseHostDef(struct vcc *tl, const struct token *t_be, const char *vgcname)
SkipToken
(
tl
,
'{'
);
SkipToken
(
tl
,
'{'
);
vsb
=
VSB_new_auto
();
AN
(
vsb
);
tl
->
fb
=
vsb
;
Fb
(
tl
,
0
,
"
\n
static const struct vrt_backend vgc_dir_priv_%s = {
\n
"
,
Fb
(
tl
,
0
,
"
\n
static const struct vrt_backend vgc_dir_priv_%s = {
\n
"
,
vgcname
);
vgcname
);
...
...
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