mirror of
https://github.com/curl/curl.git
synced 2025-09-13 23:52:42 +03:00
http2: remove the third (unused) argument from http2_data_done()
Closes #13154
This commit is contained in:
parent
33d9652a90
commit
0c820427f2
10
lib/http2.c
10
lib/http2.c
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user