Commit 3d170c0d authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Flexelinting: 'acct' is the name of a syscall

parent c957ad87
...@@ -262,7 +262,7 @@ h2_do_window(struct worker *wrk, struct h2_req *r2, ...@@ -262,7 +262,7 @@ h2_do_window(struct worker *wrk, struct h2_req *r2,
static void static void
h2_send(struct worker *wrk, struct h2_req *r2, h2_frame ftyp, uint8_t flags, 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; struct h2_sess *h2;
uint32_t mfs, tf; uint32_t mfs, tf;
...@@ -274,7 +274,7 @@ h2_send(struct worker *wrk, struct h2_req *r2, h2_frame ftyp, uint8_t flags, ...@@ -274,7 +274,7 @@ h2_send(struct worker *wrk, struct h2_req *r2, h2_frame ftyp, uint8_t flags,
h2 = r2->h2sess; h2 = r2->h2sess;
CHECK_OBJ_NOTNULL(h2, H2_SESS_MAGIC); CHECK_OBJ_NOTNULL(h2, H2_SESS_MAGIC);
assert(len == 0 || ptr != NULL); assert(len == 0 || ptr != NULL);
AN(acct); AN(counter);
AN(H2_SEND_HELD(h2, r2)); 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, ...@@ -311,7 +311,7 @@ h2_send(struct worker *wrk, struct h2_req *r2, h2_frame ftyp, uint8_t flags,
if (len <= tf) { if (len <= tf) {
H2_Send_Frame(wrk, h2, ftyp, flags, len, r2->stream, ptr); H2_Send_Frame(wrk, h2, ftyp, flags, len, r2->stream, ptr);
*acct += len; *counter += len;
} else { } else {
AN(ptr); AN(ptr);
p = ptr; p = ptr;
...@@ -341,7 +341,7 @@ h2_send(struct worker *wrk, struct h2_req *r2, h2_frame ftyp, uint8_t flags, ...@@ -341,7 +341,7 @@ h2_send(struct worker *wrk, struct h2_req *r2, h2_frame ftyp, uint8_t flags,
} }
p += tf; p += tf;
len -= tf; len -= tf;
*acct += tf; *counter += tf;
ftyp = ftyp->continuation; ftyp = ftyp->continuation;
flags &= ftyp->flags; flags &= ftyp->flags;
final_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, ...@@ -351,12 +351,12 @@ h2_send(struct worker *wrk, struct h2_req *r2, h2_frame ftyp, uint8_t flags,
void void
H2_Send(struct worker *wrk, struct h2_req *r2, h2_frame ftyp, uint8_t flags, 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) if (counter == NULL)
acct = &dummy_acct; counter = &dummy_counter;
h2_send(wrk, r2, ftyp, flags, len, ptr, acct); h2_send(wrk, r2, ftyp, flags, len, ptr, counter);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment