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
49940347
Commit
49940347
authored
Dec 24, 2015
by
Federico G. Schwindt
Committed by
Lasse Karstensen
Jan 13, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kill some dead assignments
parent
47f04129
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
20 deletions
+7
-20
cache_session.c
bin/varnishd/cache/cache_session.c
+0
-1
varnishstat_curses.c
bin/varnishstat/varnishstat_curses.c
+1
-3
vtc_logexp.c
bin/varnishtest/vtc_logexp.c
+0
-1
vtc_varnish.c
bin/varnishtest/vtc_varnish.c
+3
-7
vcc_acl.c
lib/libvcc/vcc_acl.c
+3
-8
No files found.
bin/varnishd/cache/cache_session.c
View file @
49940347
...
...
@@ -238,7 +238,6 @@ SES_RxStuff(struct http_conn *htc, htc_complete_f *func,
/* Working on it */
if
(
t1
!=
NULL
&&
isnan
(
*
t1
))
*
t1
=
now
;
tmo
=
tn
-
now
;
}
else
if
(
hs
!=
HTC_S_EMPTY
)
WRONG
(
"htc_status_e"
);
...
...
bin/varnishstat/varnishstat_curses.c
View file @
49940347
...
...
@@ -943,10 +943,8 @@ draw_bar_b(void)
level
->
label
);
X
-=
strlen
(
level
->
label
)
+
2
;
}
if
(
!
hide_unseen
)
{
if
(
!
hide_unseen
)
mvwprintw
(
w_bar_b
,
0
,
X
-
6
,
"%s"
,
"UNSEEN"
);
X
-=
8
;
}
wnoutrefresh
(
w_bar_b
);
}
...
...
bin/varnishtest/vtc_logexp.c
View file @
49940347
...
...
@@ -283,7 +283,6 @@ logexp_thread(void *priv)
AN
(
le
->
vsm
);
AN
(
le
->
vslq
);
i
=
0
;
AZ
(
le
->
test
);
vtc_log
(
le
->
vl
,
4
,
"beg|"
);
if
(
le
->
query
!=
NULL
)
...
...
bin/varnishtest/vtc_varnish.c
View file @
49940347
...
...
@@ -237,14 +237,10 @@ varnishlog_thread(void *priv)
tag
=
VSL_TAG
(
c
->
rec
.
ptr
);
vxid
=
VSL_ID
(
c
->
rec
.
ptr
);
if
(
tag
==
SLT__Batch
)
{
tagname
=
"Batch"
;
len
=
0
;
if
(
tag
==
SLT__Batch
)
continue
;
}
else
{
tagname
=
VSL_tags
[
tag
];
len
=
VSL_LEN
(
c
->
rec
.
ptr
);
}
tagname
=
VSL_tags
[
tag
];
len
=
VSL_LEN
(
c
->
rec
.
ptr
);
type
=
VSL_CLIENT
(
c
->
rec
.
ptr
)
?
'c'
:
VSL_BACKEND
(
c
->
rec
.
ptr
)
?
'b'
:
'-'
;
data
=
VSL_CDATA
(
c
->
rec
.
ptr
);
...
...
lib/libvcc/vcc_acl.c
View file @
49940347
...
...
@@ -348,7 +348,6 @@ vcc_acl_emit(struct vcc *tl, const char *acln, int anon)
struct
acl_e
*
ae
;
int
depth
,
l
,
m
,
i
;
unsigned
at
[
VRT_ACL_MAXADDR
+
1
];
const
char
*
oc
;
struct
token
*
t
;
struct
inifin
*
ifp
;
...
...
@@ -371,7 +370,6 @@ vcc_acl_emit(struct vcc *tl, const char *acln, int anon)
"
\t
if (0) match_acl_named_%s(0, 0);
\n
"
,
acln
);
}
depth
=
-
1
;
oc
=
0
;
at
[
0
]
=
256
;
VTAILQ_FOREACH
(
ae
,
&
tl
->
acl
,
list
)
{
...
...
@@ -383,7 +381,6 @@ vcc_acl_emit(struct vcc *tl, const char *acln, int anon)
}
/* Back down, if necessary */
oc
=
""
;
while
(
l
<=
depth
)
{
Fh
(
tl
,
0
,
"
\t
%*s}
\n
"
,
-
depth
,
""
);
depth
--
;
...
...
@@ -397,23 +394,21 @@ vcc_acl_emit(struct vcc *tl, const char *acln, int anon)
for
(
i
=
l
;
m
>=
8
;
m
-=
8
,
i
++
)
{
if
(
i
==
0
)
Fh
(
tl
,
0
,
"
\t
%*s%sif (fam == %d) {
\n
"
,
-
i
,
""
,
oc
,
ae
->
data
[
i
]);
-
i
,
""
,
""
,
ae
->
data
[
i
]);
else
Fh
(
tl
,
0
,
"
\t
%*s%sif (a[%d] == %d) {
\n
"
,
-
i
,
""
,
oc
,
i
-
1
,
ae
->
data
[
i
]);
-
i
,
""
,
""
,
i
-
1
,
ae
->
data
[
i
]);
at
[
i
]
=
ae
->
data
[
i
];
depth
=
i
;
oc
=
""
;
}
if
(
m
>
0
)
{
/* Do fractional byte compares */
Fh
(
tl
,
0
,
"
\t
%*s%sif ((a[%d] & 0x%x) == %d) {
\n
"
,
-
i
,
""
,
oc
,
i
-
1
,
(
0xff00
>>
m
)
&
0xff
,
-
i
,
""
,
""
,
i
-
1
,
(
0xff00
>>
m
)
&
0xff
,
ae
->
data
[
i
]
&
((
0xff00
>>
m
)
&
0xff
));
at
[
i
]
=
256
;
depth
=
i
;
oc
=
""
;
}
i
=
(
ae
->
mask
+
7
)
/
8
;
...
...
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