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
338550ed
Commit
338550ed
authored
Aug 06, 2019
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FlexeLinting: Default is always last in switch, and there is one.
parent
4b695858
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
cache_panic.c
bin/varnishd/cache/cache_panic.c
+1
-1
cache_rfc2616.c
bin/varnishd/cache/cache_rfc2616.c
+4
-4
mgt_param.c
bin/varnishd/mgt/mgt_param.c
+4
-1
No files found.
bin/varnishd/cache/cache_panic.c
View file @
338550ed
...
@@ -725,8 +725,8 @@ pan_ic(const char *func, const char *file, int line, const char *cond,
...
@@ -725,8 +725,8 @@ pan_ic(const char *func, const char *file, int line, const char *cond,
"Incomplete code in %s(), %s line %d:
\n
"
,
"Incomplete code in %s(), %s line %d:
\n
"
,
func
,
file
,
line
);
func
,
file
,
line
);
break
;
break
;
default:
case
VAS_ASSERT
:
case
VAS_ASSERT
:
default:
VSB_printf
(
pan_vsb
,
VSB_printf
(
pan_vsb
,
"Assert error in %s(), %s line %d:
\n
"
"Assert error in %s(), %s line %d:
\n
"
" Condition(%s) not true.
\n
"
,
" Condition(%s) not true.
\n
"
,
...
...
bin/varnishd/cache/cache_rfc2616.c
View file @
338550ed
...
@@ -126,9 +126,6 @@ RFC2616_Ttl(struct busyobj *bo, vtim_real now, vtim_real *t_origin,
...
@@ -126,9 +126,6 @@ RFC2616_Ttl(struct busyobj *bo, vtim_real now, vtim_real *t_origin,
h_date
=
VTIM_parse
(
p
);
h_date
=
VTIM_parse
(
p
);
switch
(
http_GetStatus
(
hp
))
{
switch
(
http_GetStatus
(
hp
))
{
default:
*
ttl
=
-
1
.;
break
;
case
302
:
/* Moved Temporarily */
case
302
:
/* Moved Temporarily */
case
307
:
/* Temporary Redirect */
case
307
:
/* Temporary Redirect */
/*
/*
...
@@ -192,7 +189,10 @@ RFC2616_Ttl(struct busyobj *bo, vtim_real now, vtim_real *t_origin,
...
@@ -192,7 +189,10 @@ RFC2616_Ttl(struct busyobj *bo, vtim_real now, vtim_real *t_origin,
*/
*/
*
ttl
=
(
int
)(
h_expires
-
h_date
);
*
ttl
=
(
int
)(
h_expires
-
h_date
);
}
}
break
;
default:
*
ttl
=
-
1
.;
break
;
}
}
/*
/*
...
...
bin/varnishd/mgt/mgt_param.c
View file @
338550ed
...
@@ -691,7 +691,8 @@ MCF_InitParams(struct cli *cli)
...
@@ -691,7 +691,8 @@ MCF_InitParams(struct cli *cli)
/*--------------------------------------------------------------------*/
/*--------------------------------------------------------------------*/
void
void
MCF_ParamConf
(
enum
mcf_which_e
which
,
const
char
*
param
,
const
char
*
fmt
,
...)
MCF_ParamConf
(
enum
mcf_which_e
which
,
const
char
*
const
param
,
const
char
*
fmt
,
...)
{
{
struct
parspec
*
pp
;
struct
parspec
*
pp
;
struct
vsb
*
vsb
;
struct
vsb
*
vsb
;
...
@@ -718,6 +719,8 @@ MCF_ParamConf(enum mcf_which_e which, const char *param, const char *fmt, ...)
...
@@ -718,6 +719,8 @@ MCF_ParamConf(enum mcf_which_e which, const char *param, const char *fmt, ...)
pp
->
max
=
strdup
(
VSB_data
(
vsb
));
pp
->
max
=
strdup
(
VSB_data
(
vsb
));
AN
(
pp
->
max
);
AN
(
pp
->
max
);
break
;
break
;
default:
WRONG
(
"bad 'which'"
);
}
}
VSB_delete
(
vsb
);
VSB_delete
(
vsb
);
}
}
...
...
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