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
0bb94ca7
Commit
0bb94ca7
authored
Oct 12, 2016
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some style(9)
parent
df4ec11d
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
11 deletions
+22
-11
mgt_child.c
bin/varnishd/mgt/mgt_child.c
+2
-1
mgt_cli.c
bin/varnishd/mgt/mgt_cli.c
+2
-1
mgt_jail_solaris.c
bin/varnishd/mgt/mgt_jail_solaris.c
+4
-2
cache_waiter_ports.c
bin/varnishd/waiter/cache_waiter_ports.c
+2
-1
vtc_http2.c
bin/varnishtest/vtc_http2.c
+8
-4
vbm.h
include/vbm.h
+2
-1
vmod_shard.c
lib/libvmod_directors/vmod_shard.c
+2
-1
No files found.
bin/varnishd/mgt/mgt_child.c
View file @
0bb94ca7
...
...
@@ -454,7 +454,8 @@ mgt_launch_child(struct cli *cli)
*/
static
int
kill_child
(
void
)
{
kill_child
(
void
)
{
int
i
,
error
;
VJ_master
(
JAIL_MASTER_KILL
);
...
...
bin/varnishd/mgt/mgt_cli.c
View file @
0bb94ca7
...
...
@@ -174,7 +174,8 @@ static struct cli_proto cli_askchild[] = {
*/
int
mgt_cli_askchild
(
unsigned
*
status
,
char
**
resp
,
const
char
*
fmt
,
...)
{
mgt_cli_askchild
(
unsigned
*
status
,
char
**
resp
,
const
char
*
fmt
,
...)
{
int
i
,
j
;
va_list
ap
;
unsigned
u
;
...
...
bin/varnishd/mgt/mgt_jail_solaris.c
View file @
0bb94ca7
...
...
@@ -262,7 +262,8 @@ vjs_init(char **args)
/* for priv_delset() and priv_addset() */
static
inline
int
priv_setop_check
(
int
a
)
{
priv_setop_check
(
int
a
)
{
if
(
a
==
0
)
return
(
1
);
if
(
errno
==
EINVAL
)
...
...
@@ -280,7 +281,8 @@ priv_setop_check(int a) {
/* for setppriv */
static
inline
int
setppriv_check
(
int
a
)
{
setppriv_check
(
int
a
)
{
if
(
a
==
0
)
return
(
1
);
if
(
errno
==
EPERM
)
...
...
bin/varnishd/waiter/cache_waiter_ports.c
View file @
0bb94ca7
...
...
@@ -107,7 +107,8 @@ vws_del(struct vws *vws, int fd)
}
static
inline
void
vws_port_ev
(
struct
vws
*
vws
,
struct
waiter
*
w
,
port_event_t
*
ev
,
double
now
)
{
vws_port_ev
(
struct
vws
*
vws
,
struct
waiter
*
w
,
port_event_t
*
ev
,
double
now
)
{
struct
waited
*
wp
;
if
(
ev
->
portev_source
==
PORT_SOURCE_USER
)
{
CAST_OBJ_NOTNULL
(
wp
,
ev
->
portev_user
,
WAITED_MAGIC
);
...
...
bin/varnishtest/vtc_http2.c
View file @
0bb94ca7
...
...
@@ -559,7 +559,8 @@ parse_prio(struct stream *s, struct frame *f)
}
static
void
parse_rst
(
const
struct
stream
*
s
,
struct
frame
*
f
)
{
parse_rst
(
const
struct
stream
*
s
,
struct
frame
*
f
)
{
struct
http
*
hp
;
uint32_t
err
;
const
char
*
buf
;
...
...
@@ -2059,7 +2060,8 @@ cmd_txwinup(CMD_ARGS)
}
static
struct
frame
*
rxstuff
(
struct
stream
*
s
)
{
rxstuff
(
struct
stream
*
s
)
{
struct
frame
*
f
;
CHECK_OBJ_NOTNULL
(
s
,
STREAM_MAGIC
);
...
...
@@ -2284,7 +2286,8 @@ cmd_rxreqsp(CMD_ARGS)
*
*/
static
void
cmd_rxpush
(
CMD_ARGS
)
{
cmd_rxpush
(
CMD_ARGS
)
{
struct
stream
*
s
;
struct
frame
*
f
=
NULL
;
char
*
p
;
...
...
@@ -2374,7 +2377,8 @@ RXFUNC(winup, WINDOW_UPDATE)
* Receive a frame, any frame.
*/
static
void
cmd_rxframe
(
CMD_ARGS
)
{
cmd_rxframe
(
CMD_ARGS
)
{
struct
stream
*
s
;
(
void
)
cmd
;
(
void
)
vl
;
...
...
include/vbm.h
View file @
0bb94ca7
...
...
@@ -44,7 +44,8 @@
#define VBITMAP_BIT(n) (1U << ((n) % VBITMAP_WORD))
static
inline
unsigned
vbit_rndup
(
unsigned
bit
,
unsigned
to
)
{
vbit_rndup
(
unsigned
bit
,
unsigned
to
)
{
bit
+=
to
-
1
;
bit
-=
(
bit
%
to
);
...
...
lib/libvmod_directors/vmod_shard.c
View file @
0bb94ca7
...
...
@@ -104,7 +104,8 @@ VCL_INT __match_proto__(td_directors_shard_key)
VCL_VOID
__match_proto__
(
td_directors_set_warmup
)
vmod_shard_set_warmup
(
VRT_CTX
,
struct
vmod_directors_shard
*
vshard
,
VCL_REAL
probability
)
{
VCL_REAL
probability
)
{
CHECK_OBJ_NOTNULL
(
vshard
,
VMOD_SHARD_SHARD_MAGIC
);
if
(
probability
<
0
||
probability
>=
1
)
{
shard_err
(
ctx
,
vshard
->
shardd
,
...
...
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