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
3d170c0d
Commit
3d170c0d
authored
Apr 29, 2019
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Flexelinting: 'acct' is the name of a syscall
parent
c957ad87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
cache_http2_send.c
bin/varnishd/http2/cache_http2_send.c
+9
-9
No files found.
bin/varnishd/http2/cache_http2_send.c
View file @
3d170c0d
...
...
@@ -262,7 +262,7 @@ h2_do_window(struct worker *wrk, struct h2_req *r2,
static
void
h2_send
(
struct
worker
*
wrk
,
struct
h2_req
*
r2
,
h2_frame
ftyp
,
uint8_t
flags
,
uint32_t
len
,
const
void
*
ptr
,
uint64_t
*
acct
)
uint32_t
len
,
const
void
*
ptr
,
uint64_t
*
counter
)
{
struct
h2_sess
*
h2
;
uint32_t
mfs
,
tf
;
...
...
@@ -274,7 +274,7 @@ h2_send(struct worker *wrk, struct h2_req *r2, h2_frame ftyp, uint8_t flags,
h2
=
r2
->
h2sess
;
CHECK_OBJ_NOTNULL
(
h2
,
H2_SESS_MAGIC
);
assert
(
len
==
0
||
ptr
!=
NULL
);
AN
(
acct
);
AN
(
counter
);
AN
(
H2_SEND_HELD
(
h2
,
r2
));
...
...
@@ -311,7 +311,7 @@ h2_send(struct worker *wrk, struct h2_req *r2, h2_frame ftyp, uint8_t flags,
if
(
len
<=
tf
)
{
H2_Send_Frame
(
wrk
,
h2
,
ftyp
,
flags
,
len
,
r2
->
stream
,
ptr
);
*
acct
+=
len
;
*
counter
+=
len
;
}
else
{
AN
(
ptr
);
p
=
ptr
;
...
...
@@ -341,7 +341,7 @@ h2_send(struct worker *wrk, struct h2_req *r2, h2_frame ftyp, uint8_t flags,
}
p
+=
tf
;
len
-=
tf
;
*
acct
+=
tf
;
*
counter
+=
tf
;
ftyp
=
ftyp
->
continuation
;
flags
&=
ftyp
->
flags
;
final_flags
&=
ftyp
->
flags
;
...
...
@@ -351,12 +351,12 @@ h2_send(struct worker *wrk, struct h2_req *r2, h2_frame ftyp, uint8_t flags,
void
H2_Send
(
struct
worker
*
wrk
,
struct
h2_req
*
r2
,
h2_frame
ftyp
,
uint8_t
flags
,
uint32_t
len
,
const
void
*
ptr
,
uint64_t
*
acct
)
uint32_t
len
,
const
void
*
ptr
,
uint64_t
*
counter
)
{
uint64_t
dummy_
acct
;
uint64_t
dummy_
counter
;
if
(
acct
==
NULL
)
acct
=
&
dummy_acct
;
if
(
counter
==
NULL
)
counter
=
&
dummy_counter
;
h2_send
(
wrk
,
r2
,
ftyp
,
flags
,
len
,
ptr
,
acct
);
h2_send
(
wrk
,
r2
,
ftyp
,
flags
,
len
,
ptr
,
counter
);
}
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