Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
dd74a963
Commit
dd74a963
authored
Nov 10, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OCD patch: return (x)
parent
f72bf057
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
16 additions
and
16 deletions
+16
-16
cache_backend.c
bin/varnishd/cache_backend.c
+1
-1
cache_vrt.c
bin/varnishd/cache_vrt.c
+1
-1
cache_vrt_var.c
bin/varnishd/cache_vrt_var.c
+2
-2
hash_critbit.c
bin/varnishd/hash/hash_critbit.c
+1
-1
cache_waiter_epoll.c
bin/varnishd/waiter/cache_waiter_epoll.c
+2
-2
varnishncsa.c
bin/varnishncsa/varnishncsa.c
+6
-6
vtcp.c
lib/libvarnish/vtcp.c
+2
-2
vsc2rst.c
man/vsc2rst.c
+1
-1
No files found.
bin/varnishd/cache_backend.c
View file @
dd74a963
...
...
@@ -412,7 +412,7 @@ vdi_get_backend_if_simple(const struct director *d)
vs2
=
d
->
priv
;
if
(
vs2
->
magic
!=
VDI_SIMPLE_MAGIC
)
return
NULL
;
return
(
NULL
)
;
CAST_OBJ_NOTNULL
(
vs
,
d
->
priv
,
VDI_SIMPLE_MAGIC
);
return
(
vs
->
backend
);
}
...
...
bin/varnishd/cache_vrt.c
View file @
dd74a963
...
...
@@ -342,7 +342,7 @@ VRT_time_string(const struct sess *sp, double t)
AN
(
p
=
WS_Alloc
(
sp
->
http
->
ws
,
VTIM_FORMAT_SIZE
));
VTIM_format
(
t
,
p
);
return
p
;
return
(
p
)
;
}
const
char
*
...
...
bin/varnishd/cache_vrt_var.c
View file @
dd74a963
...
...
@@ -485,9 +485,9 @@ VRT_r_server_identity(struct sess *sp)
(
void
)
sp
;
if
(
heritage
.
identity
[
0
]
!=
'\0'
)
return
heritage
.
identity
;
return
(
heritage
.
identity
)
;
else
return
heritage
.
name
;
return
(
heritage
.
name
)
;
}
...
...
bin/varnishd/hash/hash_critbit.c
View file @
dd74a963
...
...
@@ -57,7 +57,7 @@ static unsigned char hcb_bittbl[256];
static
unsigned
char
hcb_bits
(
unsigned
char
x
,
unsigned
char
y
)
{
return
hcb_bittbl
[
x
^
y
]
;
return
(
hcb_bittbl
[
x
^
y
])
;
}
static
void
...
...
bin/varnishd/waiter/cache_waiter_epoll.c
View file @
dd74a963
...
...
@@ -200,7 +200,7 @@ vwe_thread(void *priv)
SES_Delete
(
sp
,
"timeout"
);
}
}
return
NULL
;
return
(
NULL
)
;
}
/*--------------------------------------------------------------------*/
...
...
@@ -219,7 +219,7 @@ vwe_sess_timeout_ticker(void *priv)
assert
(
write
(
vwe
->
timer_pipes
[
1
],
&
ticker
,
1
));
VTIM_sleep
(
100
*
1e-3
);
}
return
NULL
;
return
(
NULL
)
;
}
/*--------------------------------------------------------------------*/
...
...
bin/varnishncsa/varnishncsa.c
View file @
dd74a963
...
...
@@ -200,11 +200,11 @@ req_header(struct logline *l, const char *name)
struct
hdr
*
h
;
VTAILQ_FOREACH
(
h
,
&
l
->
req_headers
,
list
)
{
if
(
strcasecmp
(
h
->
key
,
name
)
==
0
)
{
return
h
->
value
;
return
(
h
->
value
)
;
break
;
}
}
return
NULL
;
return
(
NULL
)
;
}
static
char
*
...
...
@@ -213,11 +213,11 @@ resp_header(struct logline *l, const char *name)
struct
hdr
*
h
;
VTAILQ_FOREACH
(
h
,
&
l
->
resp_headers
,
list
)
{
if
(
strcasecmp
(
h
->
key
,
name
)
==
0
)
{
return
h
->
value
;
return
(
h
->
value
)
;
break
;
}
}
return
NULL
;
return
(
NULL
)
;
}
static
char
*
...
...
@@ -226,11 +226,11 @@ vcl_log(struct logline *l, const char *name)
struct
hdr
*
h
;
VTAILQ_FOREACH
(
h
,
&
l
->
vcl_log
,
list
)
{
if
(
strcasecmp
(
h
->
key
,
name
)
==
0
)
{
return
h
->
value
;
return
(
h
->
value
)
;
break
;
}
}
return
NULL
;
return
(
NULL
)
;
}
static
void
...
...
lib/libvarnish/vtcp.c
View file @
dd74a963
...
...
@@ -61,11 +61,11 @@ VTCP_port(const struct sockaddr_storage *addr)
if
(
addr
->
ss_family
==
AF_INET
)
{
const
struct
sockaddr_in
*
ain
=
(
const
void
*
)
addr
;
return
ntohs
((
ain
->
sin_port
));
return
(
ntohs
((
ain
->
sin_port
)
));
}
if
(
addr
->
ss_family
==
AF_INET6
)
{
const
struct
sockaddr_in6
*
ain
=
(
const
void
*
)
addr
;
return
ntohs
((
ain
->
sin6_port
));
return
(
ntohs
((
ain
->
sin6_port
)
));
}
return
(
-
1
);
}
...
...
man/vsc2rst.c
View file @
dd74a963
...
...
@@ -64,6 +64,6 @@ int main(int argc, char **argv)
#include "tbl/vsc_fields.h"
#undef VSC_DO_VBE
return
0
;
return
(
0
)
;
}
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