http2: remove the third (unused) argument from http2_data_done()

Closes #13154
This commit is contained in:
Daniel Stenberg 2024-03-20 12:06:13 +01:00
parent 33d9652a90
commit 0c820427f2
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -280,14 +280,12 @@ static void free_push_headers(struct h2_stream_ctx *stream)
stream->push_headers_used = 0; stream->push_headers_used = 0;
} }
static void http2_data_done(struct Curl_cfilter *cf, static void http2_data_done(struct Curl_cfilter *cf, struct Curl_easy *data)
struct Curl_easy *data, bool premature)
{ {
struct cf_h2_ctx *ctx = cf->ctx; struct cf_h2_ctx *ctx = cf->ctx;
struct h2_stream_ctx *stream = H2_STREAM_CTX(data); struct h2_stream_ctx *stream = H2_STREAM_CTX(data);
DEBUGASSERT(ctx); DEBUGASSERT(ctx);
(void)premature;
if(!stream) if(!stream)
return; return;
@ -841,7 +839,7 @@ static void discard_newhandle(struct Curl_cfilter *cf,
struct Curl_easy *newhandle) struct Curl_easy *newhandle)
{ {
if(newhandle->req.p.http) { if(newhandle->req.p.http) {
http2_data_done(cf, newhandle, TRUE); http2_data_done(cf, newhandle);
} }
(void)Curl_close(&newhandle); (void)Curl_close(&newhandle);
} }
@ -2466,10 +2464,10 @@ static CURLcode cf_h2_cntrl(struct Curl_cfilter *cf,
result = http2_data_done_send(cf, data); result = http2_data_done_send(cf, data);
break; break;
case CF_CTRL_DATA_DETACH: case CF_CTRL_DATA_DETACH:
http2_data_done(cf, data, TRUE); http2_data_done(cf, data);
break; break;
case CF_CTRL_DATA_DONE: case CF_CTRL_DATA_DONE:
http2_data_done(cf, data, arg1 != 0); http2_data_done(cf, data);
break; break;
default: default:
break; break;