Skip to content

Commit

Permalink
http2: remove the third (unused) argument from http2_data_done()
Browse files Browse the repository at this point in the history
Closes curl#13154
  • Loading branch information
bagder committed Mar 21, 2024
1 parent 33d9652 commit 0c82042
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/http2.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,14 +280,12 @@ static void free_push_headers(struct h2_stream_ctx *stream)
stream->push_headers_used = 0;
}

static void http2_data_done(struct Curl_cfilter *cf,
struct Curl_easy *data, bool premature)
static void http2_data_done(struct Curl_cfilter *cf, struct Curl_easy *data)
{
struct cf_h2_ctx *ctx = cf->ctx;
struct h2_stream_ctx *stream = H2_STREAM_CTX(data);

DEBUGASSERT(ctx);
(void)premature;
if(!stream)
return;

Expand Down Expand Up @@ -841,7 +839,7 @@ static void discard_newhandle(struct Curl_cfilter *cf,
struct Curl_easy *newhandle)
{
if(newhandle->req.p.http) {
http2_data_done(cf, newhandle, TRUE);
http2_data_done(cf, newhandle);
}
(void)Curl_close(&newhandle);
}
Expand Down Expand Up @@ -2466,10 +2464,10 @@ static CURLcode cf_h2_cntrl(struct Curl_cfilter *cf,
result = http2_data_done_send(cf, data);
break;
case CF_CTRL_DATA_DETACH:
http2_data_done(cf, data, TRUE);
http2_data_done(cf, data);
break;
case CF_CTRL_DATA_DONE:
http2_data_done(cf, data, arg1 != 0);
http2_data_done(cf, data);
break;
default:
break;
Expand Down

0 comments on commit 0c82042

Please sign in to comment.