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
110a61e9
Commit
110a61e9
authored
May 24, 2016
by
Federico G. Schwindt
Committed by
Lasse Karstensen
Jun 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor OCD here and there
parent
17f14aad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
cache_rfc2616.c
bin/varnishd/cache/cache_rfc2616.c
+3
-3
miniobj.h
include/miniobj.h
+3
-3
vmod_debug.c
lib/libvmod_debug/vmod_debug.c
+4
-4
No files found.
bin/varnishd/cache/cache_rfc2616.c
View file @
110a61e9
...
...
@@ -254,7 +254,7 @@ rfc2616_weak_compare(const char *p, const char *e)
int
RFC2616_Do_Cond
(
const
struct
req
*
req
)
{
const
char
*
p
,
*
e
,
*
l
;
const
char
*
p
,
*
e
;
double
ims
,
lm
;
/*
...
...
@@ -274,8 +274,8 @@ RFC2616_Do_Cond(const struct req *req)
ims
=
VTIM_parse
(
p
);
if
(
!
ims
||
ims
>
req
->
t_req
)
/* [RFC7232 3.3 p16] */
return
(
0
);
if
(
http_GetHdr
(
req
->
resp
,
H_Last_Modified
,
&
l
))
{
lm
=
VTIM_parse
(
l
);
if
(
http_GetHdr
(
req
->
resp
,
H_Last_Modified
,
&
p
))
{
lm
=
VTIM_parse
(
p
);
if
(
!
lm
||
lm
>
ims
)
return
(
0
);
return
(
1
);
...
...
include/miniobj.h
View file @
110a61e9
...
...
@@ -55,13 +55,13 @@
#define CAST_OBJ_NOTNULL(to, from, type_magic) \
do { \
(to) = (from); \
assert((to) != NULL);
\
AN((to));
\
CHECK_OBJ((to), (type_magic)); \
} while (0)
#define TAKE_OBJ_NOTNULL(to, pfrom, type_magic) \
#define TAKE_OBJ_NOTNULL(to, pfrom, type_magic)
\
do { \
assert((pfrom) != NULL);
\
AN((pfrom));
\
(to) = *(pfrom); \
*(pfrom) = NULL; \
CHECK_OBJ_NOTNULL((to), (type_magic)); \
...
...
lib/libvmod_debug/vmod_debug.c
View file @
110a61e9
...
...
@@ -350,9 +350,9 @@ event_function(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e)
{
switch
(
e
)
{
case
VCL_EVENT_LOAD
:
return
event_load
(
ctx
,
priv
);
case
VCL_EVENT_WARM
:
return
event_warm
(
ctx
,
priv
);
case
VCL_EVENT_COLD
:
return
event_cold
(
ctx
,
priv
);
case
VCL_EVENT_LOAD
:
return
(
event_load
(
ctx
,
priv
)
);
case
VCL_EVENT_WARM
:
return
(
event_warm
(
ctx
,
priv
)
);
case
VCL_EVENT_COLD
:
return
(
event_cold
(
ctx
,
priv
)
);
default:
return
(
0
);
}
}
...
...
@@ -409,7 +409,7 @@ vmod_workspace_free(VRT_CTX, VCL_ENUM which)
WS_Assert
(
ws
);
AZ
(
ws
->
r
);
return
pdiff
(
ws
->
f
,
ws
->
e
);
return
(
pdiff
(
ws
->
f
,
ws
->
e
)
);
}
VCL_BOOL
...
...
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