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
606ff7da
Commit
606ff7da
authored
Apr 13, 2018
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whitespace and style OCD
parent
cffcca55
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
10 deletions
+7
-10
vtc_barrier.c
bin/varnishtest/vtc_barrier.c
+1
-2
vtc_http.c
bin/varnishtest/vtc_http.c
+1
-2
vtc_process.c
bin/varnishtest/vtc_process.c
+1
-2
vcc_utils.c
lib/libvcc/vcc_utils.c
+1
-1
vmod_debug_dyn.c
lib/libvmod_debug/vmod_debug_dyn.c
+1
-1
cred_compat.h
lib/libvmod_unix/cred_compat.h
+1
-1
vmod_unix.c
lib/libvmod_unix/vmod_unix.c
+1
-1
No files found.
bin/varnishtest/vtc_barrier.c
View file @
606ff7da
...
...
@@ -277,8 +277,7 @@ barrier_cond_sync(struct barrier *b, struct vtclog *vl)
if
(
++
b
->
waiters
==
b
->
expected
)
{
vtc_log
(
vl
,
4
,
"Barrier(%s) wake %u"
,
b
->
name
,
b
->
expected
);
AZ
(
pthread_cond_broadcast
(
&
b
->
cond
));
}
else
{
}
else
{
vtc_log
(
vl
,
4
,
"Barrier(%s) wait %u of %u"
,
b
->
name
,
b
->
waiters
,
b
->
expected
);
AZ
(
pthread_cond_wait
(
&
b
->
cond
,
&
b
->
mtx
));
...
...
bin/varnishtest/vtc_http.c
View file @
606ff7da
...
...
@@ -1901,8 +1901,7 @@ http_process(struct vtclog *vl, const char *spec, int sock, int *sfd,
VTCP_hisname
(
sock
,
hp
->
rem_ip
,
VTCP_ADDRBUFSIZE
,
hp
->
rem_port
,
VTCP_PORTBUFSIZE
);
hp
->
rem_path
=
NULL
;
}
else
{
}
else
{
strcpy
(
hp
->
rem_ip
,
"0.0.0.0"
);
strcpy
(
hp
->
rem_port
,
"0"
);
hp
->
rem_path
=
strdup
(
addr
);
...
...
bin/varnishtest/vtc_process.c
View file @
606ff7da
...
...
@@ -730,9 +730,8 @@ process_kill(struct process *p, const char *sig)
if
(
kill
(
-
pid
,
j
)
<
0
)
vtc_fatal
(
p
->
vl
,
"Failed to send signal %d (%s)"
,
j
,
strerror
(
errno
));
else
{
else
vtc_log
(
p
->
vl
,
4
,
"Sent signal %d"
,
j
);
}
}
/**********************************************************************
...
...
lib/libvcc/vcc_utils.c
View file @
606ff7da
...
...
@@ -283,7 +283,7 @@ Emit_UDS_Path(struct vcc *tl, const struct token *t_path, const char *errid)
vcc_ErrWhere
(
tl
,
t_path
);
return
;
}
if
(
!
S_ISSOCK
(
st
.
st_mode
))
{
if
(
!
S_ISSOCK
(
st
.
st_mode
))
{
VSB_printf
(
tl
->
sb
,
"%s: Not a socket:
\n
"
,
errid
);
vcc_ErrWhere
(
tl
,
t_path
);
return
;
...
...
lib/libvmod_debug/vmod_debug_dyn.c
View file @
606ff7da
...
...
@@ -200,7 +200,7 @@ dyn_uds_init(VRT_CTX, struct xyzzy_debug_dyn_uds *uds, VCL_STRING path)
VRT_fail
(
ctx
,
"Cannot stat path %s: %s"
,
path
,
strerror
(
errno
));
return
(
-
1
);
}
if
(
!
S_ISSOCK
(
st
.
st_mode
))
{
if
(
!
S_ISSOCK
(
st
.
st_mode
))
{
VRT_fail
(
ctx
,
"%s is not a socket"
,
path
);
return
(
-
1
);
}
...
...
lib/libvmod_unix/cred_compat.h
View file @
606ff7da
...
...
@@ -95,7 +95,7 @@ get_ids(int fd, uid_t *uid, gid_t *gid)
priv_set_t
*
priv
=
NULL
;
errno
=
0
;
if
(
!
priv_ineffect
(
PRIV_PROC_INFO
))
{
if
(
!
priv_ineffect
(
PRIV_PROC_INFO
))
{
priv
=
priv_proc_info
;
if
(
setppriv
(
PRIV_ON
,
PRIV_EFFECTIVE
,
priv
))
return
(
CREDS_FAIL
);
...
...
lib/libvmod_unix/vmod_unix.c
View file @
606ff7da
...
...
@@ -94,7 +94,7 @@ vmod_##func(VRT_CTX) \
} \
\
sp = get_sp(ctx); \
if (!
sp->listen_sock->uds) { \
if (!sp->listen_sock->uds) { \
ERRNOTUDS(ctx); \
return (-1); \
} \
...
...
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