From: Jay Satiro Date: Mon, 25 Jul 2022 17:53:39 +0000 (-0400) Subject: ngtcp2: Fix build error due to change in nghttp3 prototypes X-Git-Tag: curl-7_85_0~120 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9bd40e2b69b3e731096c32ed95d9d0031b068a6a;p=thirdparty%2Fcurl.git ngtcp2: Fix build error due to change in nghttp3 prototypes ngtcp2/nghttp3@4a066b2 changed nghttp3_conn_block_stream and nghttp3_conn_shutdown_stream_write return from int to void. Reported-by: jurisuk@users.noreply.github.com Fixes https://github.com/curl/curl/issues/9204 Closes https://github.com/curl/curl/pull/9200 --- diff --git a/lib/vquic/ngtcp2.c b/lib/vquic/ngtcp2.c index 6b3332d53b..16d203bbeb 100644 --- a/lib/vquic/ngtcp2.c +++ b/lib/vquic/ngtcp2.c @@ -1939,22 +1939,11 @@ static CURLcode ng_flush_egress(struct Curl_easy *data, switch(outlen) { case NGTCP2_ERR_STREAM_DATA_BLOCKED: assert(ndatalen == -1); - rv = nghttp3_conn_block_stream(qs->h3conn, stream_id); - if(rv) { - failf(data, "nghttp3_conn_block_stream returned error: %s\n", - nghttp3_strerror(rv)); - return CURLE_SEND_ERROR; - } + nghttp3_conn_block_stream(qs->h3conn, stream_id); continue; case NGTCP2_ERR_STREAM_SHUT_WR: assert(ndatalen == -1); - rv = nghttp3_conn_shutdown_stream_write(qs->h3conn, stream_id); - if(rv) { - failf(data, - "nghttp3_conn_shutdown_stream_write returned error: %s\n", - nghttp3_strerror(rv)); - return CURLE_SEND_ERROR; - } + nghttp3_conn_shutdown_stream_write(qs->h3conn, stream_id); continue; case NGTCP2_ERR_WRITE_MORE: assert(ndatalen >= 0);